Skip to content

Commit

Permalink
Adding support for charge blade timers.
Browse files Browse the repository at this point in the history
I did not find a full timer for Power Axe Mode, but I found when one phial is about to expire.

resolves r00telement#20

(cherry picked from commit 445717d)
  • Loading branch information
sir-wilhelm authored and acelan committed Feb 26, 2020
1 parent 05278e8 commit f60819f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions SmartHunter/Game/Config/LocalizationConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ public class LocalizationConfig
{ "LOC_WEAPON_LONGSWORD_SPIRIT_GAUGE_REGEN_LAI_SLASH", "Spirit Gauge Regen (Lai Slash)" },
{ "LOC_WEAPON_CHARGE_BLADE_SHIELD_CHARGE", "Shield Charge" },
{ "LOC_WEAPON_CHARGE_BLADE_BLADE_CHARGE", "Blade Charge" },
{ "LOC_WEAPON_CHARGE_BLADE_PHIAL_EXPIRES", "Phial expires" },
{ "LOC_WEAPON_SWITCH_AXE_AMPED_STATE", "Amped State" },
{ "LOC_WEAPON_HAMMER_POWER_CHARGE", "Power Charge" },

Expand Down
10 changes: 6 additions & 4 deletions SmartHunter/Game/Config/PlayerDataConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ private static string indexToHexStrNoOffset(int index)
new StatusEffectConfig("Coral", "LOC_STATUS_EFFECT_EARPLUGS_S", (uint)StatusEffectConfig.MemorySource.Base, indexToHexStrNoOffset(79)),
new StatusEffectConfig("Coral", "LOC_STATUS_EFFECT_WIND_PRESSURE_NEGATED", (uint)StatusEffectConfig.MemorySource.Base, indexToHexStrNoOffset(80)),
new StatusEffectConfig("Coral", "LOC_STATUS_EFFECT_ENVIRONMENTAL_DAMAGE_NEGATED", (uint)StatusEffectConfig.MemorySource.Base, indexToHexStrNoOffset(81)),

new StatusEffectConfig("Debuff", "LOC_STATUS_EFFECT_POISON", (uint)StatusEffectConfig.MemorySource.Base, indexToHexStrNoOffset(375)),


Expand Down Expand Up @@ -146,7 +146,7 @@ private static string indexToHexStrNoOffset(int index)
new StatusEffectConfig("Buff", "LOC_STATUS_EFFECT_ADAMANT_PILL", (uint)StatusEffectConfig.MemorySource.Base, indexToHexStrNoOffset(429), new MemoryConditionConfig(0, indexToHexStrNoOffset(430))),
new StatusEffectConfig("Buff", "LOC_STATUS_EFFECT_DEMON_POWDER", (uint)StatusEffectConfig.MemorySource.Base, indexToHexStrNoOffset(434)),
new StatusEffectConfig("Buff", "LOC_STATUS_EFFECT_HARDSHELL_POWDER", (uint)StatusEffectConfig.MemorySource.Base, indexToHexStrNoOffset(435)),

new StatusEffectConfig("Buff", "LOC_STATUS_EFFECT_DEMONDRUG", (uint)StatusEffectConfig.MemorySource.Base, null, new MemoryConditionConfig(1, indexToHexStrNoOffset(438))),
new StatusEffectConfig("Buff", "LOC_STATUS_EFFECT_MEGA_DEMONDRUG", (uint)StatusEffectConfig.MemorySource.Base, null, new MemoryConditionConfig(2, indexToHexStrNoOffset(438))),
new StatusEffectConfig("Buff", "LOC_STATUS_EFFECT_ARMORSKIN", (uint)StatusEffectConfig.MemorySource.Base, null, new MemoryConditionConfig(1, indexToHexStrNoOffset(439))),
Expand Down Expand Up @@ -212,10 +212,12 @@ private static string indexToHexStrNoOffset(int index)
new StatusEffectConfig("Weapon", "LOC_WEAPON_LONGSWORD_SPIRIT_GAUGE_REGEN_LAI_SLASH", (uint)WeaponType.LONG_SWORD, indexToHexStrNoOffset(2406)),
new StatusEffectConfig("Weapon", "LOC_WEAPON_LONGSWORD_STEADY_SPIRIT_LEVEL", (uint)WeaponType.LONG_SWORD, indexToHexStrNoOffset(2408)),

new StatusEffectConfig("Weapon", "LOC_WEAPON_CHARGE_BLADE_SHIELD_CHARGE", (uint)WeaponType.CHARGE_BLADE, indexToHexStrNoOffset(2402)),
new StatusEffectConfig("Weapon", "LOC_WEAPON_CHARGE_BLADE_BLADE_CHARGE", (uint)WeaponType.CHARGE_BLADE, indexToHexStrNoOffset(2403)),
new StatusEffectConfig("Weapon", "LOC_WEAPON_CHARGE_BLADE_PHIAL_EXPIRES", (uint)WeaponType.CHARGE_BLADE, indexToHexStrNoOffset(2464)),

// Not Working
/*
new StatusEffectConfig("Weapon", "LOC_WEAPON_CHARGE_BLADE_SHIELD_CHARGE", (uint)StatusEffectConfig.MemorySource.Weapon, "1FF8", WeaponType.CHARGE_BLADE),
new StatusEffectConfig("Weapon", "LOC_WEAPON_CHARGE_BLADE_BLADE_CHARGE", (uint)StatusEffectConfig.MemorySource.Weapon, "1FFC", WeaponType.CHARGE_BLADE),
new StatusEffectConfig("Weapon", "LOC_WEAPON_SWITCH_AXE_AMPED_STATE", (uint)StatusEffectConfig.MemorySource.Weapon, "1FD4", WeaponType.SWITCH_AXE),
new StatusEffectConfig("Weapon", "LOC_WEAPON_HAMMER_POWER_CHARGE", (uint)StatusEffectConfig.MemorySource.Weapon, null, WeaponType.HAMMER, new MemoryConditionConfig((byte)1, "1FC4"))
*/
Expand Down

0 comments on commit f60819f

Please sign in to comment.