Magic Damage

Any information you would like to share or ask in regards to the hacking of Legend of Legaia
Post Reply
User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Magic Damage

Post by meth962 » Wed Jul 23, 2014 9:17 pm

There's a really strange mechanic to Magic damage that I found which makes me think the game designers were originally wanting the Seru to be summons IN the battle. I say this because everytime you use a magic spell, the Seru 'entity' is copied into memory with full stats! I captured them all here:

Gimard - HP 192 MP 32 AGL 78 ATK 24 UDF 21 LDF 25 SPD 20 INT 60
Theeder - HP 384 MP 58 AGL 52 ATK 21 UDF 28 LDF 31 SPD 38 INT 70
Vera - HP 256 MP 0 AGL 72 ATK 55 UDF 134 LDF 350 SPD 154 INT 80
Gizam - HP 320 MP 0 AGL 89 ATK 69 UDF 119 LDF 94 SPD 52 INT 80
Nighto - HP 256 MP 0 AGL 200 ATK 100 UDF 175 LDF 350 SPD 111 INT 80
Zenoir - HP 384 MP 200 AGL 72 ATK 75 UDF 116 LDF 92 SPD 62 INT 80
Viguro - HP 768 MP 380 AGL 98 ATK 75 UDF 95 LDF 77 SPD 73 INT 80
Swordie - HP 448 MP 0 AGL 120 ATK 150 UDF 297 LDF 238 SPD 120 INT 80
Orb - HP 512 MP 800 AGL 78 ATK 69 UDF 66 LDF 52 SPD 66 INT 160
Freed - HP 576 MP 400 AGL 178 ATK 169 UDF 295 LDF 235 SPD 129 INT 80
Nova - HP 768 MP 0 AGL 128 ATK 160 UDF 305 LDF 245 SPD 124 INT 100
Gola Gola - HP 576 MP 0 AGL 52 ATK 138 UDF 256 LDF 204 SPD 122 INT 80
Mushara - HP 640 MP 0 AGL 164 ATK 146 UDF 339 LDF 270 SPD 194 INT 80
Aluru - HP 1536 MP 512 AGL 80 ATK 209 UDF 318 LDF 253 SPD 165 INT 160
Barra - HP 2560 MP 0 AGL 80 ATK 69 UDF 66 LDF 52 SPD 66 INT 320
Kemaro - HP 2048 MP 800 AGL 102 ATK 194 UDF 358 LDF 287 SPD 196 INT 240
Spoon - HP 1024 MP 800 AGL 102 ATK 194 UDF 358 LDF 287 SPD 196 INT 320
Slippery - HP 2016 MP 222 AGL 136 ATK 180 UDF 302 LDF 241 SPD 165 INT 260
Iota - HP 1888 MP 2222 AGL 136 ATK 80 UDF 127 LDF 101 SPD 65 INT 240
Puera - HP 2080 MP 800 AGL 102 ATK 194 UDF 358 LDF 287 SPD 196 INT 280
Gilium - HP 2560 MP 8000 AGL 200 ATK 200 UDF 350 LDF 350 SPD 200 INT 400
Evil Seru - HP 2048 MP 30 AGL 148 ATK 85 UDF 162 LDF 129 SPD 78 INT 320
Palma - HP 2144 MP 0 AGL 999 ATK 999 UDF 1747 LDF 1747 SPD 999 INT 335
Mule - HP 1408 MP 0 AGL 999 ATK 999 UDF 1747 LDF 1747 SPD 999 INT 220
Horn - HP 8192 MP 0 AGL 999 ATK 999 UDF 1747 LDF 1747 SPD 999 INT 2560
Jedo - HP 4352 MP 0 AGL 999 ATK 999 UDF 1747 LDF 1747 SPD 999 INT 640
Meta - HP 2176 MP 0 AGL 999 ATK 999 UDF 1747 LDF 1747 SPD 999 INT 340
Terra - HP 2176 MP 0 AGL 999 ATK 999 UDF 1747 LDF 1747 SPD 999 INT 340
Ozma - HP 2400 MP 0 AGL 999 ATK 999 UDF 1747 LDF 1747 SPD 999 INT 375

The game actually uses these stats, but only their HP and INT to do the damage calculation.

offense = seruHP + rnd(0..seruINT+1) + casterINT*2
defense = rnd(0..enemyINT / 2 + 1) + (enemyLDF/16) + (enemyHP/256) + (enemyUDF/16) + (enemyINT*2)

damage = offense - defense

To sum it up, the summoned Seru's HP and INT plus your INT are summed up. And the enemy defends with their INT, LDF, UDF, and even HP. INT being the more weighted ingredient.

The Level of the damage spells increase it to by a percentage. I have not tested all the spells, but all of them so far use the same formula.

Bonus Damage by Level
-----------------------
Level 1 - +0
Level 2 - +12.48%
Level 3 - +24.99%
Level 4 - +37.50%
Level 5 - +50.00%
Level 6 - +62.50%
Level 7 - +75.00%
Level 8 - +87.50%
Level 9 - +100%

The game then checks the element of the spell versus the element of the target. A lookup for damage ratio is available in my "Elements" thread.

It also looks up your proficiency in the element of the spell and applies that lookup ratio (also available in the Elements thread).
Last edited by meth962 on Thu Jul 24, 2014 1:25 pm, edited 1 time in total.
まさかつあがつ

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: Magic Damage

Post by meth962 » Wed Jul 23, 2014 9:23 pm

Healing Magic
Healing Magic actually uses a straight formula for healing per magic.

Vera
-----
Formula: Lvl * 32 + 224 (Lvl is Vera's level)

Level 1 - 256hp
Level 2 - 288hp
Level 3 - 320hp
Level 4 - 352hp
Level 5 - 384hp
Level 6 - 416hp
Level 7 - 448hp
Level 8 - 480hp
Level 9 - 512hp

Orb
----
Formula: Lvl * 64 + 448 (Lvl is Orb's Level)

Level 1 - 512hp
Level 2 - 576hp
Level 3 - 640hp
Level 4 - 704hp
Level 5 - 768hp
Level 6 - 832hp
Level 7 - 896hp
Level 8 - 960hp
Level 9 - 1024hp

Spoon
-------
Formula: Lvl * 128 + 896 (Lvl is Spoon's level)

Level 1 - 1024hp
Level 2 - 1152hp
Level 3 - 1280hp
Level 4 - 1408hp
Level 5 - 1536hp
Level 6 - 1664hp
Level 7 - 1792hp
Level 8 - 1920hp
Level 9 - 2048hp
Last edited by meth962 on Wed Jul 23, 2014 10:09 pm, edited 1 time in total.
まさかつあがつ

User avatar
Nightshade
Level 60
Posts: 1797
Joined: Tue Jul 26, 2011 9:07 pm
Location: the the the the

Re: Magic Damage

Post by Nightshade » Wed Jul 23, 2014 9:54 pm

I think you copied down the translation for Orb's HP recovery incorrectly. I believe it starts at 512 and goes up to 1024 at level 9. Your formula matches up with this, but the values you list for Orb do not.
Do not question yourself with the why or the how. I simply am, and that is all you need to know.

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: Magic Damage

Post by meth962 » Wed Jul 23, 2014 10:09 pm

Oops! Fixed that copy & paste error. Thanks!
まさかつあがつ

User avatar
meth962
Level 23
Posts: 266
Joined: Tue Apr 03, 2012 8:37 am
Location: USA
Contact:

Re: Magic Damage

Post by meth962 » Thu Jul 24, 2014 6:39 pm

Also just found out, if you use a weak spell on a strong enemy (like Gimard Lv1 on Juggy), the game will force you to do SOME damage.

For example, if my offense adds up to 599 and Juggy up to 1299, it will set your offense to his defense, and then give you a small increase based on the Seru. The damage is like this...

rng(0..seruInt * 2 + 1) + seruHP

Otherwise you would get negative damage, so instead, you get a measily 203 damage. But that's better than nothing!
まさかつあがつ

Post Reply