Skip to content

Commit

Permalink
Merge 'Fixes the weird text alignment when going from a textbox with …
Browse files Browse the repository at this point in the history
…an icon�' (#2273)
  • Loading branch information
fenhl committed Aug 21, 2024
2 parents 289b0ae + bf80469 commit 67acd9e
Show file tree
Hide file tree
Showing 8 changed files with 32,541 additions and 32,517 deletions.
1,387 changes: 694 additions & 693 deletions ASM/build/asm_symbols.txt

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions ASM/src/hacks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4137,6 +4137,16 @@ DemoEffect_DrawJewel_AfterHook:
jal volvagia_flying_hitbox
nop

;================================================================================
; Reset choiceNum when decoding a new message
; prevents weird text alignment when going from message box with icon to no icon
;================================================================================
; Replaces sh $zero, 0x4c0(at)
; lhu a3, 0x4c0(a3)
.org 0x800DA34C
j Message_Decode_reset_msgCtx.textPosX
nop

.include "hacks/en_item00.asm"
.include "hacks/ovl_bg_gate_shutter.asm"
.include "hacks/ovl_bg_haka_tubo.asm"
Expand Down
7 changes: 7 additions & 0 deletions ASM/src/messages.asm
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,10 @@ shooting_gallery_no_bow:

jr ra
addiu sp, sp, 0x20

Message_Decode_reset_msgCtx.textPosX:
sb $zero, 0x4BE(at)
sh $zero, 0x4C0(at)
lhu a3, 0x4C0(a3)
j 0x800DA354
nop
7 changes: 3 additions & 4 deletions Hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,9 +1706,8 @@ def build_boss_string(reward: str, color: str, world: World) -> str:


def build_bridge_reqs_string(world: World) -> str:
string = "\x13\x3C" # Master Sword icon
if world.settings.bridge == 'open':
string += "The awakened ones will have #already created a bridge# to the castle where the evil dwells."
string = "The awakened ones will have #already created a bridge# to the castle where the evil dwells."
else:
if world.settings.bridge == 'vanilla':
item_req_string = "the #Shadow and Spirit Medallions# as well as the #Light Arrows#"
Expand All @@ -1722,9 +1721,9 @@ def build_bridge_reqs_string(world: World) -> str:
}[world.settings.bridge]
item_req_string = f'{count} {singular if count == 1 else plural}'
if world.settings.clearer_hints:
string += f"The rainbow bridge will be built once the Hero collects {item_req_string}."
string = f"The rainbow bridge will be built once the Hero collects {item_req_string}."
else:
string += f"The awakened ones will await for the Hero to collect {item_req_string}."
string = f"The awakened ones will await for the Hero to collect {item_req_string}."
return str(GossipText(string, ['Green'], prefix=''))


Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ issue. You should always Hard Reset to avoid this issue entirely.
* Pause menu has been modified so that equip swap will work again.
* Major items from pots, crates, etc now display above Link's head while the text box is open.
* Gameplay is no longer interrupted if you receive a junk item from another player in multiworld.
* Removed the potentially confusing Master Sword icon from the Rainbow Bridge page of the adult Temple of Time altar text.

### 8.1

Expand Down
Loading

0 comments on commit 67acd9e

Please sign in to comment.