The Cathedral of Attnam

Changes

Jump to navigation Jump to search
76 bytes added ,  04:07, 13 August 2014
m
Enemies that are kicked can both be damaged by it and be thrown backward a single 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. If another entity is in the way of the kicked enemy, it will either swap places with it (due to the monster charging forward to occupy the tile next to the player) or fail to be moved at all.
<pre>truth character::CheckBalance(double KickDamage)
{
Moderator
952

edits

Navigation menu