PRC8/nwn/trunk/newspellbook/moi_mld_dsplcrft.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

46 lines
1.8 KiB
Plaintext

/*
30/12/19 by Stratovarius
Displacer Mantle
Descriptors: None
Classes: Totemist
Chakra: Shoulders (totem)
Saving Throw: None
Chakra Bind (Totem)
A pair of tentacles extends from your shoulder blades. They end in pads ridged with sharp horn, allowing you to lash out even at distant foes to batter and tear them.
As a full-round action, you can make two tentacle attacks using your full base attack bonus. Each tentacle deals 1d4 points of damage plus your Strength modifier. Every point of essentia invested in the displacer mantle grants you a +1 enhancement bonus on damage rolls made with the tentacle attacks.
*/
#include "moi_inc_moifunc"
#include "prc_inc_combat"
void main()
{
object oMeldshaper = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
int nEssentia = GetEssentiaInvested(oMeldshaper, MELD_BASILISK_MASK);
object oWeap = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oMeldshaper);
int nAtk = GetAttackRoll(oTarget, oMeldshaper, oWeap);
if (nAtk > 0)
{
int nDam = d4() + GetAbilityModifier(ABILITY_STRENGTH, oMeldshaper) + nEssentia;
int nDamType = GetWeaponDamageType(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oMeldshaper));
effect eLink = EffectLinkEffects(EffectDamage(nDam * nAtk, nDamType), EffectVisualEffect(VFX_COM_HIT_ACID));
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eLink, oTarget);
}
nAtk = GetAttackRoll(oTarget, oMeldshaper, oWeap);
if (nAtk > 0)
{
int nDam = d4() + GetAbilityModifier(ABILITY_STRENGTH, oMeldshaper) + nEssentia;
int nDamType = GetWeaponDamageType(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oMeldshaper));
effect eLink = EffectLinkEffects(EffectDamage(nDam * nAtk, nDamType), EffectVisualEffect(VFX_COM_HIT_ACID));
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eLink, oTarget);
}
}