mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
oot: bugfixes (#1709)
* oot client: check types of tables coming from lua script for safety There was a reported bug with corrupted (?) slot data preventing locations sending. This should safeguard against any instances of that happening in the future, if it ever happens again. * oot: repair minor hint issues SMW has # in some location names which breaks ootr's poor text formatting system, so those need to be filtered out. Also replaces "[X] for [player Y]" with "[player Y]'s X" as frequently requested. * oot: update required client version * oot client: fix patching filename bug * oot: fix broken poachers saw item how was I this stupid, seriously * oot: sanitize player, location, and item names everywhere
This commit is contained in:
@@ -367,3 +367,10 @@ def test_support_long_words():
|
||||
print('"Support Long Words" test failed: Got ' + result + ', wanted ' + expected)
|
||||
else:
|
||||
print('"Support Long Words" test passed!')
|
||||
|
||||
|
||||
# AP additions
|
||||
|
||||
rom_safe_lambda = lambda c: c if c in character_table else '?'
|
||||
def rom_safe_text(text):
|
||||
return ''.join(map(rom_safe_lambda, text))
|
||||
|
||||
Reference in New Issue
Block a user