Skip to content

Commit

Permalink
feat: loothandler form tab
Browse files Browse the repository at this point in the history
- the loothandler was partially reworked and some unexpected issues could arise, especially on my scripts
- loothandler form example added to templates
  • Loading branch information
Torwent committed Nov 25, 2024
1 parent 9cd5e09 commit 2b07fb8
Show file tree
Hide file tree
Showing 7 changed files with 507 additions and 240 deletions.
8 changes: 3 additions & 5 deletions optional/handlers/combathandler.simba
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ type
IsFighting, Looted, IsSetup: Boolean;

HandleConsumables: array [ERSConsumable] of Boolean;

LootHandler: TRSLootHandler;
end;

procedure TRSCombatHandler._SetupGear();
Expand Down Expand Up @@ -280,8 +278,8 @@ begin

if lootValue > 0 then
begin
Self.LootHandler.Setup(npc, lootValue);
Self.LootEnabled := Self.LootHandler.IsSetup;
LootHandler.Setup(npc.Name, lootValue);
LootEnabled := True;
end;
end;

Expand Down Expand Up @@ -389,7 +387,7 @@ begin
if dots = [] then
Exit;

if Result := Self.LootHandler.CheckLoot(dots) then
if Result := LootHandler.CheckLoot(dots) then
begin
Wait(600, 800);

Expand Down
Loading

0 comments on commit 2b07fb8

Please sign in to comment.