Skip to content

Commit 0c74dcc

Browse files
authored
Merge pull request #225 from bassiej14/master
Added heart to magichandler and consume
2 parents ad08554 + cbc617b commit 0c74dcc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

osr/handlers/consumablehandler.simba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ begin
367367
while not consumableHandler^.Delay.IsFinished() do
368368
Wait(50, 100);
369369
slotBox := Self.GetSlotBox(slots[0]);
370-
Result := Self.ClickSlot(slots[0], ['Eat', 'Drink']);
370+
Result := Self.ClickSlot(slots[0], ['Eat', 'Drink', 'Invigorate']);
371371

372372
if Result then
373373
begin

utils/items/consumables.simba

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ WriteLn CONSUMABLE_ARRAYS[ERSConsumable.ENERGY];
6969
ATTACK_BOOST_ARRAY: TRSItemArray = ['Divine super attack potion(1..4)', 'Super attack(1..4)', 'Attack potion(1..4)'];
7070
DEFENCE_BOOST_ARRAY: TRSItemArray = ['Divine super defence potion(1..4)', 'Super defence(1..4)', 'Defence potion(1..4)'];
7171
RANGING_BOOST_ARRAY: TRSItemArray = ['Divine ranging potion(1..4)', 'Ranging potion(1..4)'];
72-
MAGIC_BOOST_ARRAY: TRSItemArray = ['Divine magic potion(1..4)', 'Magic potion(1..4)'];
72+
MAGIC_BOOST_ARRAY: TRSItemArray = ['Divine magic potion(1..4)', 'Magic potion(1..4)', 'Saturated heart', 'Imbued heart'];
7373
TRASH_ARRAY: TRSItemArray = ['Cocktail glass', 'Jug', 'Bowl', 'Pie dish', 'Vial', 'Beer glass', 'Empty cup'];
74-
7574
CONSUMABLE_ARRAYS: array [ERSConsumable] of TRSItemArray := [FOOD_ARRAY, PRAYER_ARRAY, ENERGY_ARRAY, ANTI_POISON_ARRAY, ANTI_FIRE_ARRAY, BOOST_ARRAY, STRENGTH_BOOST_ARRAY, ATTACK_BOOST_ARRAY, DEFENCE_BOOST_ARRAY, RANGING_BOOST_ARRAY, MAGIC_BOOST_ARRAY];
7675

7776
type
@@ -291,7 +290,7 @@ begin
291290
if Self.IsSetup then
292291
Exit;
293292
str := ToStr(Self.Item);
294-
if str.Contains('ivine ') then
293+
if str.Contains('ivine ') or str.Contains('heart') then
295294
Self.Timer := (5 * ONE_MINUTE) + (3 * ONE_SECOND)
296295
else
297296
Self.Timer := 8 * ONE_MINUTE;

0 commit comments

Comments
 (0)