Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
20
_module/nss/dae_hbtickcold.nss
Normal file
20
_module/nss/dae_hbtickcold.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
void main()
|
||||
{
|
||||
object oPlayer = GetFirstObjectInArea(OBJECT_SELF);
|
||||
while (oPlayer != OBJECT_INVALID)
|
||||
{
|
||||
int iSave = FortitudeSave(oPlayer, 35, SAVING_THROW_TYPE_COLD, OBJECT_SELF);
|
||||
switch (iSave)
|
||||
{
|
||||
case 0: // Failed
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(20, DAMAGE_TYPE_COLD, DAMAGE_POWER_NORMAL), oPlayer);
|
||||
break;
|
||||
case 1: // Saved
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(10, DAMAGE_TYPE_COLD, DAMAGE_POWER_NORMAL), oPlayer);
|
||||
break;
|
||||
default: // Immune
|
||||
break;
|
||||
}
|
||||
oPlayer = GetNextObjectInArea(OBJECT_SELF);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user