PartyDamage¶
A method specifically for enemy actions that calls DoDamage for each player party member whose hp
is above 0. The method also supports adding some visual effects such as jumping or spinning.
private void PartyDamage(int caller, int damage, AttackProperty? property, bool block, float jumpheight, Vector3 spinammount, bool jumpevenonblock, DamageOverride[] overrides)
There is also an overload that relays to the method except for the following parameters which are ommited:
jumpheight
: 0.0spinammount
: Vector3.zerojumpevenonblock
: falseoverrides
: null
private void PartyDamage(int caller, int damage, AttackProperty? property, bool block)
Parameters¶
caller
: Theenemydata
index that will be used as the attacker of the DoDamage callsdamage
: The damageammount that will be passed to the DoDamage callsproperty
: The property that will be passed to the DoDamage callsblock
: The block that will be passed to the DoDamage callsjumpheight
: If this is higher than 0.1 and eitherblock
is false orjumpevenonblock
, all the affected player party members will jump once DoDamage is called on themspinammount
: If this is higher than 0.1, a SlowSpinStop will happen on all of the affected player party members after DoDamage is called on them with this value as the spnammount and 60.0 frametimejumpevenonblock
: Ifjumpheight
is higher than 0.1, the jumping animation will always happen even ifblock
is true. This parameter does nothing ifjumpheight
is 0.1 or loweroverrides
: The overrides that will be passed to the DoDamage calls
Procedure¶
The following happens for each player party member whose hp
is above 0:
- DoDamage is called using the parameters mentioned above and the player party member as the target
- If jumpheight is higher than 0.1 and either block is false or jumpevenonblock is true:
- The player party member's
overridejump
is set to true - Jump called on the player party member with an h of jumpheight
- ResetOverrides invoked on the player party member in 1.25 seconds
- The player party member's
- If spinammount is higher than 0.1, SlowSpinStop is called on the player party member with the spinammount and a frametime of 60.0