Skip to content

Commit

Permalink
healthbar now is using id 11, I smell a new character using new healt…
Browse files Browse the repository at this point in the history
…hbar
  • Loading branch information
GuiSaiUwU committed Aug 28, 2024
1 parent 8b245a6 commit 3071783
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion LtMAO/wadfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ def read_data(self, bs):
elif self.compression_type == WADCompressionType.ZstdChunked:
if raw[:4] == b'\x28\xb5\x2f\xfd':
self.data = pyzstd.decompress(raw)
self.data = raw
else:
self.data = raw
# guess extension
if self.extension == None:
self.extension = guess_extension(self.data)
Expand Down
4 changes: 2 additions & 2 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def parse_bin(bin_file: BIN) -> BIN:
if has_unithealth_flag:
for inside_healthbar in s_property.data:
if inside_healthbar.hash == BIN_HASH["UnitHealthBarStyle"]:
print(f"Just changed the value from {inside_healthbar.data} to 10 UwU!")
inside_healthbar.data = 10 # WoW magic changed the value to 10 omfg
print(f"Just changed the value from {inside_healthbar.data} to 11 UwU!")
inside_healthbar.data = 11 # WoW magic changed the value to 11 omfg
else:
# Wtf you have HealthBarData but dont have UnitHealthBarStyle?
s_property.data.append(UnitHealthBarStyle)
Expand Down

0 comments on commit 3071783

Please sign in to comment.