Skip to content

Commit

Permalink
Fix weirdness with durability-based items and shop text (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
sme23 authored Apr 21, 2023
1 parent 2d0364e commit 741065f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PUSH
ORG CURRENTOFFSET+$1;GetItemNameString:
ORG CURRENTOFFSET+$74;NewItemNameGetter1:
ORG CURRENTOFFSET+$64;NewItemNameGetter2:
ORG CURRENTOFFSET+$64;GetItemDescStringIndex:
ORG CURRENTOFFSET+$74;GetItemDescStringIndex:
ORG CURRENTOFFSET+$3c;NewItemNameGetter3:
POP
SHORT $B4F0 $1C04 $21FF $4008 $C1 $1809 $89 $4813 $1809 $8808 $4D12 $8829 $2900 $D01C $4288 $D001 $3508 $E7F8 $6869 $1C20 $A00 $40 $1840 $8800 $4B0C $469E
Expand All @@ -18,9 +18,10 @@ SHORT $8858 $2800 $D009 $4809 $7801 $2900 $D005 $293A $D001 $3001 $E7F8 $2100 $7
POIN ItemTable
POIN DurabilityBasedItemNameList
BYTE $41 $A2 $0 $8 $AC $A6 $2 $2 $61 $6A $1 $8 $5D $6A $1 $8
SHORT $89 $4812 $180C $8820 $4B11 $8819 $2900 $D01B $4288 $D001 $3308 $E7F8 $6859 $1C30 $A00 $40 $1840 $8800 $4B0B $469E
SHORT $89 $4816 $180C $8820 $4B15 $8819 $2900 $D022 $4288 $D001 $3308 $E7F8 $6859 $1C30 $A00 $40 $1840 $8800 $4B0F $469E
BYTE $0 $F8
SHORT $8859 $2900 $D009 $4809 $7801 $2900 $D005 $293A $D001 $3001 $E7F8 $2100 $7001 $4B05 $4718 $4B05 $4718
SHORT $8859 $2900 $D010 $480D $7801 $2900 $D00C $293A $D001 $3001 $E7F8 $2100 $7001 $3001 $7801 $2900 $D002 $2100 $7001 $E7F8 $4B06 $4718 $4B06 $4718
BYTE $0 $0
POIN ItemTable
POIN DurabilityBasedItemNameList
BYTE $41 $A2 $0 $8 $AC $A6 $2 $2 $81 $68 $1 $8 $7D $68 $1 $8
Expand Down
14 changes: 14 additions & 0 deletions EngineHacks/Necessary/DurabilityBasedItems/ScrollNames.s
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,20 @@ FoundColon3:
mov r1,#0
strb r1,[r0]

@For this specific instance, we also need to empty the text buffer
@Keep going until we find an existing 0 in the buffer

LoopStart3B:
add r0,#1
ldrb r1,[r0]
cmp r1,#0
beq LoopExit3B
mov r1,#0
strb r1,[r0]
b LoopStart3B

LoopExit3B:

SkipColonTermination3:
LoopExit3:
ldr r3,=ReturnPoint4
Expand Down
5 changes: 4 additions & 1 deletion Events/Release_map.event
Original file line number Diff line number Diff line change
Expand Up @@ -232,5 +232,8 @@ SHLI Thunder Elfire Nosferatu Divine Mend Physic PureWater Elixir
ALIGN 4

ArmoryItems:
SHLI SteelAxe SteelLance SteelBow SteelSword HandAxe Javelin

BYTE SteelAxe 0
BYTE SkillScroll 20
SHLI SteelLance SteelBow SteelSword HandAxe Javelin
ALIGN 4

0 comments on commit 741065f

Please sign in to comment.