generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
57
_module/nss/damage_inc2.nss
Normal file
57
_module/nss/damage_inc2.nss
Normal file
@@ -0,0 +1,57 @@
|
||||
void DamageIncApply(object oPlayer,int iMax )
|
||||
{
|
||||
if ((GetLevelByClass(CLASS_TYPE_DRUID, oPlayer)>0)||
|
||||
(GetLevelByClass(CLASS_TYPE_SORCERER, oPlayer)>0)||
|
||||
(GetLevelByClass(CLASS_TYPE_WIZARD, oPlayer)>0))
|
||||
{
|
||||
int iHD = GetHitDice(oPlayer);
|
||||
int iHcalc = (iHD);
|
||||
|
||||
if (iHcalc <= iMax)
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectDamageIncrease(iHcalc, DAMAGE_TYPE_MAGICAL)), oPlayer);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectAttackIncrease(iHcalc)), oPlayer);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectDamageIncrease(iMax, DAMAGE_TYPE_MAGICAL)), oPlayer);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectAttackIncrease(iMax)), oPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ColdDamageIncApply(object oPlayer, int iMax )
|
||||
{
|
||||
if ((GetLevelByClass(CLASS_TYPE_DRUID, oPlayer)>0)||
|
||||
(GetLevelByClass(CLASS_TYPE_SORCERER, oPlayer)>0)||
|
||||
(GetLevelByClass(CLASS_TYPE_WIZARD, oPlayer)>0))
|
||||
{
|
||||
int iHD = GetHitDice(oPlayer);
|
||||
int iHcalc = (iHD);
|
||||
if (iHcalc <= iMax)
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectDamageIncrease(iHcalc, DAMAGE_TYPE_COLD)), oPlayer);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectAttackIncrease(iHcalc)), oPlayer);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectDamageIncrease(iMax, DAMAGE_TYPE_COLD)), oPlayer);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT,
|
||||
SupernaturalEffect(EffectAttackIncrease(iMax)), oPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//void main (){}
|
||||
Reference in New Issue
Block a user