Skip to content

Commit

Permalink
Remove voice pack age shifting for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rrealmuto committed Dec 4, 2024
1 parent 9b89761 commit 01b264e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Voices.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,13 @@ class VOICE_PACK_AGE(Enum):
def process_pak_sfx_by_id(pak_sfx_id: int, sfx_id_map, pak_sounds, age):
to_add = []
# Try adult and child SFX ID
age_shift = -0x20 if age == VOICE_PACK_AGE.ADULT else 0x20 # For a pak we're using as adult, also try using child SFX IDs and vice-versa
# age_shift = -0x20 if age == VOICE_PACK_AGE.ADULT else 0x20 # For a pak we're using as adult, also try using child SFX IDs and vice-versa

# Check if the sfx_id is in the mapping for this age. If not try to shift it to the other age
# This should allow a pack designed for a single age to work for another age
# And if a pack has both ages in it, will only patch the current age on this pass
sfx_id = pak_sfx_id if pak_sfx_id in sfx_id_map.keys() else pak_sfx_id + age_shift

# sfx_id = pak_sfx_id if pak_sfx_id in sfx_id_map.keys() else pak_sfx_id + age_shift
sfx_id = pak_sfx_id
if sfx_id in sfx_id_map.keys():
pak_opts = pak_sounds[pak_sfx_id] # Options provided in the pack
if not pak_opts:
Expand Down

0 comments on commit 01b264e

Please sign in to comment.