Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
386 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = class BattleMage | ||
constructor: (npc) -> | ||
@id = BattleMage.id | ||
@name = BattleMage.simpleName | ||
@powers = BattleMage.powers | ||
@npc = npc | ||
|
||
npc.feature "class", "Arcane Riposte" | ||
npc.feature "class", "Battle Mage Action" | ||
|
||
advance: -> | ||
if @npc.level >= 16 and not @npc.hasFeature("class", "Battle Edge") | ||
@npc.feature "class", "Battle Edge" | ||
|
||
BattleMage.id = "battleMage" | ||
BattleMage.simpleName = "battle mage" | ||
BattleMage.accepts = (npc) -> npc.class.name is "wizard" | ||
|
||
BattleMage.powers = | ||
encounter: | ||
11: [ "ForcefulRetort" ] | ||
|
||
daily: | ||
20: [ "ClosingSpell" ] | ||
|
||
utility: | ||
12: [ "ArcaneRejuvenation" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = class BloodMage | ||
constructor: (npc) -> | ||
@id = BloodMage.id | ||
@name = BloodMage.simpleName | ||
@powers = BloodMage.powers | ||
@npc = npc | ||
|
||
npc.feature "class", "Blood Action" | ||
npc.feature "class", "Bolstering Blood" | ||
|
||
advance: -> | ||
if @npc.level >= 16 and not @npc.hasFeature("class", "Burning Blood") | ||
@npc.feature "class", "Burning Blood" | ||
|
||
BloodMage.id = "bloodMage" | ||
BloodMage.simpleName = "blood mage" | ||
BloodMage.accepts = (npc) -> npc.class.name is "wizard" | ||
|
||
BloodMage.powers = | ||
encounter: | ||
11: [ "BloodPulse" ] | ||
|
||
daily: | ||
20: [ "DestructiveSalutation" ] | ||
|
||
utility: | ||
12: [ "SoulBurn" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = class SpellstormMage | ||
constructor: (npc) -> | ||
@id = SpellstormMage.id | ||
@name = SpellstormMage.simpleName | ||
@powers = SpellstormMage.powers | ||
@npc = npc | ||
|
||
npc.feature "class", "Extra Damage Action" | ||
npc.feature "class", "Storm Spell" | ||
|
||
advance: -> | ||
if @npc.level >= 16 and not @npc.hasFeature("class", "Storm Fury") | ||
@npc.feature "class", "Storm Fury" | ||
|
||
SpellstormMage.id = "spellstormMage" | ||
SpellstormMage.simpleName = "spellstorm mage" | ||
SpellstormMage.accepts = (npc) -> npc.class.name is "wizard" | ||
|
||
SpellstormMage.powers = | ||
encounter: | ||
11: [ "StormCage" ] | ||
|
||
daily: | ||
20: [ "MaelstromOfChaos" ] | ||
|
||
utility: | ||
12: [ "SuddenStorm" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Weapons = require '../weapons' | ||
|
||
module.exports = class WizardOfTheSpiralTower | ||
constructor: (npc) -> | ||
@id = WizardOfTheSpiralTower.id | ||
@name = WizardOfTheSpiralTower.simpleName | ||
@powers = WizardOfTheSpiralTower.powers | ||
@npc = npc | ||
|
||
npc.feature "class", "Corellon's Implement" | ||
npc.feature "class", "Spiral Tower Action" | ||
|
||
unless "longsword" in npc.equipment.weapons() | ||
npc.equipment.push "longsword" | ||
|
||
advance: -> | ||
if @npc.level >= 16 and not @npc.hasFeature("class", "Radiant Censure") | ||
@npc.feature "class", "Radiant Censure" | ||
|
||
WizardOfTheSpiralTower.id = "wizardOfTheSpiralTower" | ||
WizardOfTheSpiralTower.simpleName = "wizard of the spiral tower" | ||
WizardOfTheSpiralTower.accepts = (npc) -> | ||
npc.class.name is "wizard" and Weapons.proficient(npc, "longsword") | ||
|
||
WizardOfTheSpiralTower.powers = | ||
encounter: | ||
11: [ "TheOneSword" ] | ||
|
||
daily: | ||
20: [ "CorellonsBlade" ] | ||
|
||
utility: | ||
12: [ "ShapeTheDream" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{Classes, ParagonPaths, NPC} = require '../..' | ||
|
||
BattleMage = ParagonPaths.BattleMage | ||
|
||
newWizard = -> | ||
npc = new NPC | ||
npc.class = new Classes.Wizard npc | ||
npc | ||
|
||
module.exports = | ||
"should have id": (test) -> | ||
test.equal BattleMage.id, "battleMage" | ||
path = new BattleMage(newWizard()) | ||
test.equal path.id, "battleMage" | ||
test.done() | ||
|
||
"should have name": (test) -> | ||
test.equal BattleMage.simpleName, "battle mage" | ||
path = new BattleMage(newWizard()) | ||
test.equal path.name, "battle mage" | ||
test.done() | ||
|
||
"should require wizard": (test) -> | ||
npc = new NPC | ||
npc.class = new Classes.Cleric npc | ||
test.ok not BattleMage.accepts(npc) | ||
test.ok BattleMage.accepts(newWizard()) | ||
test.done() | ||
|
||
"constructor should set initial path features": (test) -> | ||
new BattleMage(npc = newWizard()) | ||
test.ok npc.hasFeature("class", "Arcane Riposte"), "expected Arcane Riposte" | ||
test.ok npc.hasFeature("class", "Battle Mage Action"), "expected Battle Mage Action" | ||
test.ok not npc.hasFeature("class", "Battle Edge") | ||
test.done() | ||
|
||
"powers are accounted for": (test) -> | ||
test.ok "ForcefulRetort" in BattleMage.powers.encounter[11] | ||
test.ok "ArcaneRejuvenation" in BattleMage.powers.utility[12] | ||
test.ok "ClosingSpell" in BattleMage.powers.daily[20] | ||
|
||
klass = new BattleMage(newWizard()) | ||
test.equal BattleMage.powers, klass.powers | ||
test.done() | ||
|
||
"advance should do nothing if level is not significant": (test) -> | ||
klass = new BattleMage(npc = newWizard()) | ||
npc.paragonPath = klass | ||
npc.level = 13 | ||
count = npc.features.class.length | ||
npc.paragonPath.advance() | ||
test.equal npc.features.class.length, count | ||
test.done() | ||
|
||
"advance should add class feature if level is significant": (test) -> | ||
klass = new BattleMage(npc = newWizard()) | ||
npc.paragonPath = klass | ||
npc.level = 16 | ||
test.ok not npc.hasFeature("class", "Battle Edge") | ||
npc.paragonPath.advance() | ||
test.ok npc.hasFeature("class", "Battle Edge") | ||
test.done() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{Classes, ParagonPaths, NPC} = require '../..' | ||
|
||
BloodMage = ParagonPaths.BloodMage | ||
|
||
newWizard = -> | ||
npc = new NPC | ||
npc.class = new Classes.Wizard npc | ||
npc | ||
|
||
module.exports = | ||
"should have id": (test) -> | ||
test.equal BloodMage.id, "bloodMage" | ||
path = new BloodMage(newWizard()) | ||
test.equal path.id, "bloodMage" | ||
test.done() | ||
|
||
"should have name": (test) -> | ||
test.equal BloodMage.simpleName, "blood mage" | ||
path = new BloodMage(newWizard()) | ||
test.equal path.name, "blood mage" | ||
test.done() | ||
|
||
"should require wizard": (test) -> | ||
npc = new NPC | ||
npc.class = new Classes.Cleric npc | ||
test.ok not BloodMage.accepts(npc) | ||
test.ok BloodMage.accepts(newWizard()) | ||
test.done() | ||
|
||
"constructor should set initial path features": (test) -> | ||
new BloodMage(npc = newWizard()) | ||
test.ok npc.hasFeature("class", "Blood Action"), "expected Blood Action" | ||
test.ok npc.hasFeature("class", "Bolstering Blood"), "expected Bolstering Blood" | ||
test.ok not npc.hasFeature("class", "Burning Blood") | ||
test.done() | ||
|
||
"powers are accounted for": (test) -> | ||
test.ok "BloodPulse" in BloodMage.powers.encounter[11] | ||
test.ok "SoulBurn" in BloodMage.powers.utility[12] | ||
test.ok "DestructiveSalutation" in BloodMage.powers.daily[20] | ||
|
||
klass = new BloodMage(newWizard()) | ||
test.equal BloodMage.powers, klass.powers | ||
test.done() | ||
|
||
"advance should do nothing if level is not significant": (test) -> | ||
klass = new BloodMage(npc = newWizard()) | ||
npc.paragonPath = klass | ||
npc.level = 13 | ||
count = npc.features.class.length | ||
npc.paragonPath.advance() | ||
test.equal npc.features.class.length, count | ||
test.done() | ||
|
||
"advance should add class feature if level is significant": (test) -> | ||
klass = new BloodMage(npc = newWizard()) | ||
npc.paragonPath = klass | ||
npc.level = 16 | ||
test.ok not npc.hasFeature("class", "Burning Blood") | ||
npc.paragonPath.advance() | ||
test.ok npc.hasFeature("class", "Burning Blood") | ||
test.done() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{Classes, ParagonPaths, NPC} = require '../..' | ||
|
||
SpellstormMage = ParagonPaths.SpellstormMage | ||
|
||
newWizard = -> | ||
npc = new NPC | ||
npc.class = new Classes.Wizard npc | ||
npc | ||
|
||
module.exports = | ||
"should have id": (test) -> | ||
test.equal SpellstormMage.id, "spellstormMage" | ||
path = new SpellstormMage(newWizard()) | ||
test.equal path.id, "spellstormMage" | ||
test.done() | ||
|
||
"should have name": (test) -> | ||
test.equal SpellstormMage.simpleName, "spellstorm mage" | ||
path = new SpellstormMage(newWizard()) | ||
test.equal path.name, "spellstorm mage" | ||
test.done() | ||
|
||
"should require wizard": (test) -> | ||
npc = new NPC | ||
npc.class = new Classes.Cleric npc | ||
test.ok not SpellstormMage.accepts(npc) | ||
test.ok SpellstormMage.accepts(newWizard()) | ||
test.done() | ||
|
||
"constructor should set initial path features": (test) -> | ||
new SpellstormMage(npc = newWizard()) | ||
test.ok npc.hasFeature("class", "Extra Damage Action"), "expected Extra Damage Action" | ||
test.ok npc.hasFeature("class", "Storm Spell"), "expected Storm Spell" | ||
test.ok not npc.hasFeature("class", "Storm Fury") | ||
test.done() | ||
|
||
"powers are accounted for": (test) -> | ||
test.ok "StormCage" in SpellstormMage.powers.encounter[11] | ||
test.ok "SuddenStorm" in SpellstormMage.powers.utility[12] | ||
test.ok "MaelstromOfChaos" in SpellstormMage.powers.daily[20] | ||
|
||
klass = new SpellstormMage(newWizard()) | ||
test.equal SpellstormMage.powers, klass.powers | ||
test.done() | ||
|
||
"advance should do nothing if level is not significant": (test) -> | ||
klass = new SpellstormMage(npc = newWizard()) | ||
npc.paragonPath = klass | ||
npc.level = 13 | ||
count = npc.features.class.length | ||
npc.paragonPath.advance() | ||
test.equal npc.features.class.length, count | ||
test.done() | ||
|
||
"advance should add class feature if level is significant": (test) -> | ||
klass = new SpellstormMage(npc = newWizard()) | ||
npc.paragonPath = klass | ||
npc.level = 16 | ||
test.ok not npc.hasFeature("class", "Storm Fury") | ||
npc.paragonPath.advance() | ||
test.ok npc.hasFeature("class", "Storm Fury") | ||
test.done() |
Oops, something went wrong.