The Cathedral of Attnam

Changes

Jump to navigation Jump to search
749 bytes added ,  03:57, 13 August 2014
no edit summary
* BonusMultiplier / 10000000;
}</pre>
 
 
== Enemies ==
Enemies that are kicked can both be damaged by it and be thrown backward a few tilessingle tile.A kick's hit value is calculated in the same way as a normal hit, using the same takeHit(...) function as in normal combat.<br>In order to be launched by a kick, the enemy must fail a balance check. Firstly, the enemy must be able to move and cannot be flying. Secondly, a check is made against the KickDamage found above versus the remainder found after dividing the enemy's size by a randomly generated number.<br>If this check is failed, the enemy will be thrown back a single tile. However, if a wall is in the way the enemy will crash into it and take damage.<pre>truth character::CheckBalance(double KickDamage){ return !CanMove() || IsStuck() || !KickDamage || (!IsFlying() && KickDamage * 5 < RAND() % GetSize());}</pre>
Moderator
952

edits

Navigation menu