Logo

DOC: Battle Damage

FIGHT
The fight damage is calculated in a sequence that depends on multiple steps, using several stats from both the attacker and defender.

Step 1 - Attack force
Step1 = Attacker->power + (Attacker->level * Attacker->level >> 4)

Step 2 - Critical hit
Step2 = Step1 * (1 + (( rand(0,17) >> 4 ) << 2) )

Step 3 - Random variance
Step3 = ( Step2 * rand(128,255) >> 8 ) + 1

Step 4 - Defense
Step4 = Step3 * ((255 - Defender->defense) >> 6) + 1

Step 5 - Dodging
Step5 = Step4 * (1 - (rand(Defender->dodge, 129) >> 6))

Step 6 - Always at least 1
Damage = Step5<1 ? 1 : Step5


MAGIC
The magic damage is calculated in a sequence that depends on multiple steps, using several stats from both the attacker and defender.

Step 1 - Raw damage
Step1 = Attacker->mpower + (Attacker->level * Attacker->level >> 4) * (Magic->level + 1)

Step 2 - Critical hit
Step2 = Step1 ( 1 + ((rand(0,17) >> 4) << 2) )

Step 3 - Random variance
Step3 = ( Step2 * rand(128,257) >> 8 ) + 1

Step 4 - Defense
Step4 = ( Step3 * (255 - Defender->mdefense) >> 8 ) + 1

Step 5 - Dodging randomizer
Step5 = Step4 * ( 1 - (rand(Defender->mdodge, 129) >> 6) )

Step 6 - Always at least 1
Damage = Step5<1 ? 1 : Step5

Group Pages
- MAIN PAGE -
- MEMBER LIST -
- SHOUTBOX -
- SKETCHPAD -
Book of Spells ■ Elements
Character Inspirations
DOC: Battle Damage
DOC: Cinema Engine
DOC: Level-Up Math
LEVEL: Bryn
LEVEL: Castle Belmeir
LEVEL: Elmyira
LEVEL: Halvera
LEVEL: Járr
LEVEL: Olmer Farm
LEVEL: Vigrid
Locations
Mt. Hildar Coliseum
Playable Characters
PROFILE: Brenda Marja
PROFILE: Didrik and Hans
PROFILE: Helmer
PROFILE: Hockfin Ehler
PROFILE: Hoedr
PROFILE: Old Man Skunk
PROFILE: Yorick and Gefjun Olmar
Released Content
SCRIPT: Berit, Jasper Searches for Help
SCRIPT: Elmyira, Brenda Joins Party
SCRIPT: Halvera, Jasper and Hockfin Meet with Helmer
SCRIPT: Járr, Party Meets the Fishermen
STORY: Jasper's Childhood
STORY: Jasper's Childhood 2
STORY: The Massacre at Bryn
Supporting Characters

Home Groups Menu Group Home
Nintendo 3DS is ™ Nintendo Co. Ltd. This website is ©2009-2019 HullBreach Studios. All rights reserved. Members are responsible for their own content. No account information will be given to third-parties without your consent.