Skip to content

Commit

Permalink
fix: small fix in combat handler setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Dec 9, 2024
1 parent f0f72a9 commit 4c287cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion optional/handlers/combathandler.simba
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ begin

if lootValue > 0 then
begin
LootHandler.Setup(npc.Name, lootValue);
if LootHandler.Loot = [] then
LootHandler.Setup(npc.Name, lootValue);
LootEnabled := True;
end;
end;
Expand Down
2 changes: 0 additions & 2 deletions utils/forms/scriptform.simba
Original file line number Diff line number Diff line change
Expand Up @@ -1540,8 +1540,6 @@ function TScriptForm.CreateBankSettings(): TTabSheet;
WLSettings.Put('bank_map', combobox.getItemIndex());
WLSettings.SaveConfig();

WriteLn WLSettings.GetInt('bank_map');
WriteLn RSBankRegions[WLSettings.GetInt('bank_map')];
b := RSBankRegions[WLSettings.GetInt('bank_map')].Bounds;
b.X1 := Round(b.X1/4);
b.Y1 := Round(b.Y1/4);
Expand Down

0 comments on commit 4c287cd

Please sign in to comment.