Exalted update
Updated Vow of Poverty. Added Sanctify Ki Strike, Holy Strike, Fist of Heavens, Vow of Abstinence, Vow of Chastity & Gift of Faith. (@fenac). Turned off the Taunt & Parry skills. Re-disabled AC & save bonuses from Tumble & Spellcraft. Updated min() & max() to PRCmin() & PRCmax() to not conflict with similarly named NUI adjacent functions. Set Point Blank Shot to 30' per PnP. Added icon for Chosen of Evil. Started work on Hidden Talent. Created Psionics function cheatsheet. Updated release archive.
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
int nDice = min(20, PRCGetCasterLevel(oPC) * 2);
|
||||
int nDice = PRCMin(20, PRCGetCasterLevel(oPC) * 2);
|
||||
location lLoc = GetLocation(oPC);
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_STRIKE_HOLY), lLoc);
|
||||
object oTarget = MyFirstObjectInShape(SHAPE_SPHERE, FeetToMeters(20), lLoc, FALSE, OBJECT_TYPE_CREATURE);
|
||||
|
@@ -67,7 +67,7 @@ void main()
|
||||
}
|
||||
//GetEffectDurationRemaining returns seconds, need rounds
|
||||
int nDice = nEffectDurationRemaining / 6;
|
||||
int nDam = d4(min(15, nDice));
|
||||
int nDam = d4(PRCMin(15, nDice));
|
||||
|
||||
//Do the AoE
|
||||
object oTarget = MyFirstObjectInShape(SHAPE_SPHERE,FeetToMeters(60.0), lLoc);
|
||||
|
@@ -49,7 +49,7 @@ void main()
|
||||
int nTargetAlignGE;
|
||||
int nTargetAlignLC;
|
||||
int nDam;
|
||||
int nLevels = min(10, nCasterLvl);
|
||||
int nLevels = PRCMin(10, nCasterLvl);
|
||||
float fRadius = FeetToMeters(10);
|
||||
|
||||
SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HOWL_WAR_CRY), oPC);
|
||||
|
@@ -48,7 +48,7 @@ void main()
|
||||
|
||||
if (GetIsObjectValid(oWeapon))
|
||||
{
|
||||
int nBonus = min(nCasterLvl, 15)/3;
|
||||
int nBonus = PRCMin(nCasterLvl, 15)/3;
|
||||
|
||||
//Simulating lawful as +3, so give +3 enhancement and penalty to damage and hit to offset
|
||||
if(nBonus == 1)
|
||||
|
@@ -38,7 +38,7 @@ void main()
|
||||
int nCasterLvl = PRCGetCasterLevel(oCreator);
|
||||
float fDur = HoursToSeconds(nCasterLvl)/6;
|
||||
object oTarget = GetEnteringObject();
|
||||
int nBonus = min(10, nCasterLvl);
|
||||
int nBonus = PRCMin(10, nCasterLvl);
|
||||
|
||||
if(GetFactionEqual(oCreator))
|
||||
{
|
||||
|
@@ -50,8 +50,8 @@ void main()
|
||||
if (nSpell == SPELL_CURSE_BRUTE_CON) nAbilBuff = ABILITY_CONSTITUTION;
|
||||
|
||||
//Get maximum bonus without lowering either stat below 3
|
||||
int nBonus = min(GetAbilityScore(oTarget, ABILITY_CHARISMA), GetAbilityScore(oTarget, ABILITY_INTELLIGENCE)) - 3;
|
||||
nBonus = min(nCasterLvl, nBonus);
|
||||
int nBonus = PRCMin(GetAbilityScore(oTarget, ABILITY_CHARISMA), GetAbilityScore(oTarget, ABILITY_INTELLIGENCE)) - 3;
|
||||
nBonus = PRCMin(nCasterLvl, nBonus);
|
||||
|
||||
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAbilityIncrease(nAbilBuff, nBonus), oTarget, fDur);
|
||||
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAbilityDecrease(ABILITY_INTELLIGENCE, nBonus), oTarget, fDur);
|
||||
|
@@ -47,7 +47,7 @@ void main()
|
||||
if (nSpell == SPELL_ESTANAS_STEW)
|
||||
{
|
||||
object oItem = CreateItemOnObject("prc_estanasstew", oPC, 1);
|
||||
int nServings = min(5, (nCasterLvl/2));
|
||||
int nServings = PRCMin(5, (nCasterLvl/2));
|
||||
SetItemCharges(oItem, nServings);
|
||||
}
|
||||
|
||||
|
@@ -36,7 +36,7 @@ void main()
|
||||
float fDur = 60*(nCasterLvl);
|
||||
int nMetaMagic = PRCGetMetaMagicFeat();
|
||||
if(nMetaMagic & METAMAGIC_EXTEND) fDur += fDur;
|
||||
int nHP = min(50, nCasterLvl * 5);
|
||||
int nHP = PRCMin(50, nCasterLvl * 5);
|
||||
|
||||
effect eBuff = EffectAbilityIncrease(ABILITY_STRENGTH, 4);
|
||||
effect eHP = EffectTemporaryHitpoints(nHP);
|
||||
|
@@ -60,7 +60,7 @@ void main()
|
||||
float fDur = 60.0f * (nCasterLvl);
|
||||
int nMetaMagic = PRCGetMetaMagicFeat();
|
||||
if(nMetaMagic & METAMAGIC_EXTEND) fDur += fDur;
|
||||
int nTargets = min(6, nCasterLvl/2);
|
||||
int nTargets = PRCMin(6, nCasterLvl/2);
|
||||
|
||||
AllyCheck(oPC, fDur);
|
||||
|
||||
|
@@ -2263,7 +2263,7 @@ int InnateCounterspell(object oCaster, int nSpellId, int nSpellLevel)
|
||||
// Set a marker on the Noctumancer at the right level
|
||||
if (GetLevelByClass(CLASS_TYPE_NOCTUMANCER) >= 7)
|
||||
{
|
||||
int nStore = min(1, nSpellLevel/2);
|
||||
int nStore = PRCMin(1, nSpellLevel/2);
|
||||
SetLocalInt(oShadow, "InnateCounterSuccess", nStore);
|
||||
FloatingTextStringOnCreature("You have one free mystery of "+IntToString(nStore)+" level", oShadow, FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user