From 6d0dedaa4842125456889fde84aeed474b0cffe8 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 9 Dec 2012 23:58:06 +0100 Subject: strongbox fixes --- src/poweruphax.S | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/poweruphax.S b/src/poweruphax.S index 49babc5..ef957e2 100644 --- a/src/poweruphax.S +++ b/src/poweruphax.S @@ -1014,7 +1014,9 @@ StrongboxGiveBattleItem: clrlwi r29, r7, 28 # now give it - mr r4, r29 + lis r4, IndexItemsForStockItem@h + ori r4, r4, IndexItemsForStockItem@l + lbzx r4, r4, r29 bl AddStockPowerup # and then copy the position @@ -1039,3 +1041,6 @@ StrongboxGiveBattleItem: lwz r29, 0x24(r1) b continueFromStrongBox2 +.data +IndexItemsForStockItem: +.byte 0,1,2,4,5,6,3,7 -- cgit v1.2.3