-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Redone Rewards (now has Reward Director) -Created Items -Created Upgrades -Created new Enemies -Created new Allies -Created way to switch Allies -Made all items and units and spells have their own art (beta art)
- Loading branch information
1 parent
51ff1be
commit 357ef12
Showing
81 changed files
with
1,664 additions
and
252 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
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,43 @@ | ||
local Create = require("Core.Create"); | ||
local _, Aura = unpack(require("Auras.Aura")); | ||
local _, Debuff = unpack(require("Auras.Debuff")); | ||
local ImageList = require("Images.ImageList"); | ||
local ItemIdentifierList = require("Items.ItemIdentifierList"); | ||
|
||
local Decay = {}; | ||
|
||
function Decay:init() | ||
self.name = ItemIdentifierList.DecayingPower; | ||
self.castSpellName = SpellIdentifierList.DecayingPower; | ||
self.image = ImageList.DecayingPower; | ||
self.timeSinceLastTick = 0; | ||
self.tickInterval = 1; | ||
self.damagePerTick = 15; | ||
|
||
self.isDispellable = false; | ||
end | ||
|
||
function Decay:removeAura() | ||
self.expired = true; | ||
self.isDispellable = true; | ||
end | ||
|
||
function CreateDecayingPower(target) | ||
assert(target); | ||
local decayingPowerDebuff = Create(Aura, Debuff, Decay); | ||
decayingPowerDebuff.target = target; | ||
return decayingPowerDebuff; | ||
end | ||
|
||
function Decay:tick(dt) | ||
if self.expired then | ||
return; | ||
end | ||
self.timeSinceLastTick = self.timeSinceLastTick + dt; | ||
if self.timeSinceLastTick >= self.tickInterval then | ||
self.target:minusHealth(self.damagePerTick); | ||
self.timeSinceLastTick = 0; | ||
end | ||
end | ||
|
||
return {CreateDecayingPower, Decay}; |
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,45 @@ | ||
local Create = require("Core.Create"); | ||
local _, Aura = unpack(require("Auras.Aura")); | ||
local _, Buff = unpack(require("Auras.Buff")); | ||
local ImageList = require("Images.ImageList"); | ||
local SpellIdentifierList = require("Spells.SpellIdentifierList"); | ||
|
||
local Heal = {}; | ||
|
||
function Heal:init() | ||
self.name = SpellIdentifierList.Heal .. "Cooldown"; | ||
self.castSpellName = SpellIdentifierList.Heal; | ||
self.image = ImageList.Heal; | ||
self.startingDuration = 10; | ||
self.currentDuration = 10; | ||
self.stacks = 1; | ||
|
||
self.isDispellable = false; | ||
end | ||
|
||
function CreateHeal(target, caster) | ||
assert(target); | ||
local healBuff = Create(Aura,Buff,Heal); | ||
healBuff.target = target; | ||
healBuff.caster = caster; | ||
return healBuff; | ||
end | ||
|
||
function Heal:tick(dt) | ||
if self.currentDuration > 0 then | ||
self.currentDuration = self.currentDuration - dt; | ||
elseif self.currentDuration <= 0 then | ||
self.currentDuration = 0; | ||
self.expired = true; | ||
end | ||
end | ||
|
||
function Heal:onExpire() | ||
for _, spell in pairs(self.caster.spells) do | ||
if spell.name == SpellIdentifierList.Heal then | ||
spell.maxCooldown = spell.initialMaxCooldown; | ||
end | ||
end | ||
end | ||
|
||
return {CreateHeal, Heal} |
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,41 @@ | ||
local Create = require("Core.Create"); | ||
local _, Aura = unpack(require("Auras.Aura")); | ||
local _, Buff = unpack(require("Auras.Buff")); | ||
local ImageList = require("Images.ImageList"); | ||
local SpellIdentifierList = require("Spells.SpellIdentifierList"); | ||
|
||
local Heal = {}; | ||
|
||
function Heal:init() | ||
self.name = SpellIdentifierList.Heal .. "Dispel"; | ||
self.castSpellName = SpellIdentifierList.Heal; | ||
self.image = ImageList.Heal; | ||
self.startingDuration = 1; | ||
self.currentDuration = 1; | ||
|
||
self.isDispellable = false; | ||
end | ||
|
||
function CreateHeal(target, caster) | ||
assert(target); | ||
local healBuff = Create(Aura,Buff,Heal); | ||
healBuff.target = target; | ||
healBuff.caster = caster | ||
return healBuff; | ||
end | ||
|
||
function Heal:tick(dt) | ||
if self.currentDuration > 0 then | ||
self.currentDuration = self.currentDuration - dt; | ||
elseif self.currentDuration <= 0 then | ||
self.currentDuration = 0; | ||
self.expired = true; | ||
end | ||
for _,debuff in pairs(self.target.debuffs) do | ||
if debuff.isDispellable then | ||
debuff:dispel(self.caster); | ||
end | ||
end | ||
end | ||
|
||
return {CreateHeal, Heal}; |
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
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
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
Oops, something went wrong.