Skip to content

Commit

Permalink
smt5v init
Browse files Browse the repository at this point in the history
  • Loading branch information
aqiu384 committed Jun 14, 2024
1 parent b4bc1c0 commit 2f2cef9
Show file tree
Hide file tree
Showing 17 changed files with 4,144 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ Donum Magici Greatly increases damage of the next Magic-based attack on <skill_t
Taunt Raises chances of being targeted by foes for 3 turns.
Omagatoki: Savage All skills of <skill_tgt> will cost twice the MP but deal double the damage for 1 turn.
Toxic Spray Chance of inflicting <skill_bst 0> to <skill_tgt> and lowers Defense by 1 rank for 3 turns.
Souffle D'éclair (Unique) Severe <skill_elm 0> attack to <skill_tgt>.
Souffle D'eclair (Unique) Severe <skill_elm 0> attack to <skill_tgt>.
Hellish Slash (Unique) <skill_maxhit> weak <skill_elm 0> attacks to <skill_tgt>. Low Accuracy.
Harvest Dance (Unique) Low HP recovery to <skill_tgt> and raises Defense by 2 ranks for 3 turns.
Mirage Shot (Unique) Medium <skill_elm 0> attack to <skill_tgt>. Chance of inflicting <skill_bst 0>.
Expand Down
24 changes: 24 additions & 0 deletions src/smt5/skills.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,27 @@ def printif_notequal(dname, field, lhs, rhs):
# printif_notequal(sname, 'does_dmg', does_dmg, new_does_dmg)
# printif_notequal(sname, 'zero', 0, zero)
# printif_notequal(sname, 'elem_two', elem_two, elem)
stats = [rank, cost, mod_power, min_hits, max_hits, acc, crit, ail_hit]
prefix = [f"{s_id:03}", sname, elem, str(target)]
suffix = [str(ailments), str(mod_flags), '-', desc]
print('\t'.join(prefix + [str(x) for x in stats] + suffix))

LINE_LEN = 0x68
START_OFFSET = END_OFFSET + 0x10
END_OFFSET = START_OFFSET + 150 * LINE_LEN

for s_id, line_start in enumerate(range(START_OFFSET, END_OFFSET, LINE_LEN)):
s_id = s_id + 401
line = NEW_SKILLS[line_start:line_start + LINE_LEN]
sname, desc = SKILL_IDS[s_id].split('\t')

new_s_id, = struct.unpack('<L', line[0x20:0x24])
hp, mp, proc = struct.unpack('<3B', line[0x30:0x33])
elem, res_lvl = struct.unpack('<2B', line[0x41:0x43])
rank, = struct.unpack('<B', line[0x59:0x5A])
target1, boost1, target2, boost2 = struct.unpack('<4B', line[0x64:0x68])

printif_notequal(sname, 's_id', s_id, new_s_id)

if sname != desc:
print(sname, hp, mp, proc, elem, res_lvl, rank, target1, boost1, target2, boost2, desc)
Binary file not shown.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
en desc
DUMMY DUMMY
Sleep Cannot perform any actions and attacks cannot be evaded. Sleep state will be lifted when damaged.
Confusion Chance of ignoring orders. May attack allies or do nothing.
Charm Chance of ignoring orders. May aid enemies or do nothing.
Seal All skills besides attack become unusable.
Poison Receive damage after performing an action.
Mud Removes 1 Press Turn Icon before next action. Cannot be overwritten by other ailments and cannot be healed.
Shroud Receive MP damage before performing an action. Cannot be overwritten by other ailments and cannot be healed with skills and items.
Incapacitated Unable to participate in battle. Does not heal after battle and can only be cured by healing at a leyline fount or by using recovery items or skills.
009 009
010 010
011 011
Mirage Greatly decreases hit rate of attacks. May attack a target that wasn't specified.
Attack Up Increases attack damage. (Turns remaining: <program 0>)
Defense Up Decreases damage received when attacked. (Turns remaining: <program 0>)
Accuracy/Evasion Up Increases hit rate and chance to avoid attacks. (Turns remaining: <program 0>)
Attack Down Decreases attack damage. (Turns remaining: <program 0>)
Defense Down Increases damage received when attacked. (Turns remaining: <program 0>)
Accuracy/Evasion Down Decreases hit rate and chance to avoid attacks. (Turns remaining: <program 0>)
Repel Phys Physical attacks are temporarily repelled. Effect disappears upon activation.
Repel Magic Fire, Ice, Elec, Force, Light, and Dark attacks are temporarily repelled. Effect disappears upon activation.
021 021
Phys Charge Increases Strength-based attack damage. Effect remains until use.
Magic Charge Increases Magic-based attack damage. Effect remains until use.
Critical Charge Strength-based attack guaranteed Critical. Effect remains until use.
Recovery Charge Increases recovery effect of healing skills and heals above MAX HP. Effect remains until use.
Pierce Charge Increases attack damage and adds a Pierce effect. Effect remains until use.
Taunt Increases the chance of being targeted by an enemy. (Turns remaining: <program 0>)
No Changes No changes have occurred.
Damage Down Decreases damage received when attacked.
Damage Down EX Greatly decreases damage taken.
Pierce Charge EX Greatly increases attack damage and adds a Pierce effect. Effect remains until use.
Omagatoki: Critical All attacks, including magic attacks, guaranteed Critical.
Omagatoki: Pierce All attacks gain Pierce effect.
Omagatoki: Hit Greatly increases attack Accuracy and ailment efficacy.
Omagatoki: Adversity Attack damage and recovery skill output increases with lower HP.
Omagatoki: Free All skills costs to 1 MP.
Omagatoki: Doubler Greatly increases the effects of stat buffs/debuffs to self.
Omagatoki: Dance Multi-hit attacks will hit the maximum number of times.
Omagatoki: Sincerity Forgives up to 2 failures in a demon conversation.
Omagatoki: Savage All skills costs twice the MP but deal double the damage.
Omagatoki: Luck Greatly increases EXP and Macca earned if battle ends within the turn.
Omagatoki: Potential All skill potentials are raised to the max.
Omagatoki: Accumulate All charge effects remain until use.
Phys Nullify Physical attacks are temporarily nullified. Effect disappears upon activation.
Fire Nullify Fire attacks are temporarily nullified. Effect disappears upon activation.
Ice Nullify Ice attacks are temporarily nullified. Effect disappears upon activation.
Elec Nullify Electric attacks are temporarily nullified. Effect disappears upon activation.
Force Nullify Force attacks are temporarily nullified. Effect disappears upon activation.
Light Nullify Light attacks are temporarily nullified. Effect disappears upon activation.
Dark Nullify Dark attacks are temporarily nullified. Effect disappears upon activation.
Omagatoki: Critical All attacks, including magic attacks, guaranteed Critical next turn.
Attack Up EX Greatly increases attack damage. (Turns remaining: <program 0>)
Defense Up EX Greatly decreases damage received when attacked. (Turns remaining: <program 0>)
Accuracy/Evasion Up EX Greatly increases Accuracy/Evasion. (Turns remaining: <program 0>)
Attack Down EX Greatly decreases attack damage. (Turns remaining: <program 0>)
Defense Down EX Greatly increases damage received when attacked. (Turns remaining: <program 0>)
Accuracy/Evasion Down EX Greatly decreases Accuracy/Evasion. (Turns remaining: <program 0>)
Omagatoki: Pierce During the next turn, all attacks will gain Pierce effect.
Successive Strikes Next attack skill will be performed 4 times consecutively. Effect remains until used.
Absolute Evasion Guarantees evasion from 1 attack. Effect remains until used.
Omagatoki: Exploit Increases damage when striking a target's weakness.
Omagatoki: Bounty Guarantees defeated enemies will drop items.
Omagatoki: Momentum Adds a Press Turn Icon for every defeated enemy.
Omagatoki: Conserve Press Turn Icon consumption is reduced by half.
Omagatoki: Strategize Changing party members or passing a turn will not consume a Press Turn Icon.
Magatsuhi Amassed Magatsuhi has been collected in preparation to unleash a Magatsuhi Skill.
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
en
NONE
Physical
Fire
Ice
Electric
Force
Light
Dark
Almighty
Poison
VERTIGO
Confusion
Charm
Sleep
Seal
STRAY
BURN
FREEZE
SHOCK
LACERATION
STONE
Mirage
Mud
RECV01
RECV02
RECV03
RECV04
RECV05
RECV06
MAX
RECOVERY
ALL_ATK
MAGIC
INVALID
None
Incapacitated
Poison
Stun
Confusion
Charm
Sleep
Seal
STRAY
STONE
Mirage
BURN
FREEZE
SHOCK
LACERATION
Mud
Shroud
None
Phys Potential
Fire Potential
Ice Potential
Elec Potential
Force Potential
Light Potential
Dark Potential
Almighty Potential
Ailment Potential
Support Potential
Recover Potential
Ailment Recovery Potential
None
MAX HP
MAX MP
Strength
Vitality
Magic
Agility
Luck
Ailment
Healing
Support
Special
Passive
Loading

0 comments on commit 2f2cef9

Please sign in to comment.