Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Check description to all spells #288

Merged
merged 4 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion data/spells/barrier.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function spell:init()
-- Battle description
self.effect = "Setup\nShield"
-- Menu description
self.description = "Sets up a barrier to protect \none party member from damage."
self.description = "Sets up a barrier to protect\none party member from damage."
-- Check description
self.check = "Sets up a barrier\nto protect one party member\nfrom damage."

-- TP cost
self.cost = 40
Expand Down
2 changes: 2 additions & 0 deletions data/spells/chainslash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Not Power\nBounce"
-- Menu description
self.description = "Deals physical damage to 1 enemy until you miss the action command."
-- Check description
self.check = "Deals physical damage to 1 enemy until you\nmiss the action command."

-- TP cost
self.cost = 60
Expand Down
2 changes: 2 additions & 0 deletions data/spells/darksling.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function spell:init()
self.effect = "Non-Boss\nSpecial"
-- Menu description
self.description = "Deals massive damage to non-boss enemies."
-- Check description
self.check = "Deals massive damage to non-boss enemies."

-- TP cost
self.cost = 55
Expand Down
2 changes: 2 additions & 0 deletions data/spells/electric_havoc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function spell:init()
self.effect = "Electric\nStorm"
-- Menu description
self.description = "Bolts an enemy 3 times. Extremely powerful."
-- Check description
self.check = "Bolts an enemy\n3 times.\n* Extremely powerful."

-- TP cost
self.cost = 100
Expand Down
2 changes: 2 additions & 0 deletions data/spells/fireball.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function spell:init()
self.effect = "Flame"
-- Menu description
self.description = "Deals damage to enemies."
-- Check description
self.check = "Deals damage to enemies."

-- TP cost
self.cost = 40
Expand Down
2 changes: 1 addition & 1 deletion data/spells/flowershot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function spell:init()

self.effect = "Damage w/\nFLOWERS"
self.description = "Summons a large flower that shoots smaller\nflowers that explode upon impact."
self.check = {"Summons a large\nflower that shoots smaller\nflowers.", "* ...which explode upon impact."}
self.check = {"Summons a large\nflower that shoots smaller\nflowers.", "* ...[wait:5] which explode upon impact."}

self.cost = 80

Expand Down
2 changes: 2 additions & 0 deletions data/spells/friend_buster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Rude\nDamage"
-- Menu description
self.description = "Deals moderate Rude-elemental damage to\none friend. Depends on Attack & Magic."
-- Check description
self.check = {"Deals moderate Rude-elemental damage to\none friend.", "* Depends on Attack & Magic."}

-- TP cost
self.cost = 50
Expand Down
2 changes: 2 additions & 0 deletions data/spells/gammabeam.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "ELEC\nDamage"
-- Menu description
self.description = "Deals a large amount of ELEC damage in multiple hits to one foe."
-- Check description
self.check = "Deals a large amount of elec damage in multiple hits to one foe."

-- TP cost
self.cost = 60
Expand Down
2 changes: 2 additions & 0 deletions data/spells/grab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function spell:init()
self.effect = "Flame"
-- Menu description
self.description = "Attempt to slow down an enemy, making them lose their turn."
-- Check description
self.check = "Attempt to slow down\nan enemy, making them lose\ntheir turn."

-- TP cost
self.cost = 50
Expand Down
4 changes: 3 additions & 1 deletion data/spells/life_steal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function spell:init()
-- Battle description
self.effect = "Steal\nhealth?"
-- Menu description
self.description = "* I AM THE DRACULA!!!\nGIVE ME YOUR HEALTH POINTS!!!!"
self.description = "I AM THE DRACULA!!!\nGIVE ME YOUR HEALTH POINTS!!!!"
-- Check description
self.check = "I AM THE DRACULA!\n* GIVE ME YOUR HEALTH POINTS!!!!"

-- TP cost
self.cost = 20
Expand Down
2 changes: 2 additions & 0 deletions data/spells/peace.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Induce\nSPARE."
-- Menu description
self.description = "Increases an enemy's SPARE bar\nby a varying amount."
-- Check description
self.check = "Increases an enemy's spare bar by a varying amount."

-- TP cost
self.cost = 32
Expand Down
2 changes: 2 additions & 0 deletions data/spells/peacelove.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Induce\nSPARE."
-- Menu description
self.description = "Increases every enemy's SPARE bar\nby a varying amount."
-- Check description
self.check = "Increases every enemy's spare bar by a varying amount."

-- TP cost
self.cost = 64
Expand Down
4 changes: 3 additions & 1 deletion data/spells/quick_heal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function spell:init()
-- Battle description
self.effect = "Heal\nFast"
-- Menu description
self.description = "* You need to go fast."
self.description = "You need to go fast."
-- Check description
self.check = "You need to go fast."

-- TP cost
self.cost = 25
Expand Down
4 changes: 3 additions & 1 deletion data/spells/save1stbase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function spell:init()
-- Battle description
self.effect = "Heal\nAllies"
-- Menu description
self.description = "Holy bat magic heals the spirits\nof party members. Depends on Magic and Attack."
self.description = "Holy bat magic heals the spirits\nof party members. Depends on Attack & Magic."
-- Check description
self.check = {"Holy bat magic heals the spirits of party members.", "* Depends on Attack & Magic."}

-- TP cost
self.cost = 48
Expand Down
2 changes: 2 additions & 0 deletions data/spells/shooting_star.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Holy\nDamage"
-- Menu description
self.description = "Deals magical HOLY damage to\none enemy."
-- Check description
self.check = "Deals magical holy damage to one enemy."

-- TP cost
self.cost = 16
Expand Down
2 changes: 2 additions & 0 deletions data/spells/siderostat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Reflect\nDamage"
-- Menu description
self.description = "Use mirroring tech to trick\nenemies and reflect one hit."
-- Check description
self.check = "Use mirroring tech to trick enemies and reflect one hit."

-- TP cost
self.cost = 100
Expand Down
4 changes: 3 additions & 1 deletion data/spells/soul_send.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function spell:init()
-- Battle description
self.effect = "Heal\nAlly?"
-- Menu description
self.description = "* This is a weird ass spell.\nLike, it heals only one guy and then I die. smh my head.."
self.description = "This is a weird ass spell.\nLike, it heals only one guy and then I die. smh my head.."
-- Check description
self.check = {"This is a weird ass spell.", "* Like, it heals only one guy and then I die. smh my head.."}

-- TP cost
self.cost = 1
Expand Down
2 changes: 2 additions & 0 deletions data/spells/spare_smack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Harmless\nSpare :)"
-- Menu description
self.description = "I'm gonna hit you,\nsafely of course. :)"
-- Check description
self.check = "I'm gonna hit you,[wait:10] safely of course. :)"

-- TP cost
self.cost = 0
Expand Down
2 changes: 2 additions & 0 deletions data/spells/starshot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Damage\nw/ STAR"
-- Menu description
self.description = "Deals magical Star damage to\none enemy."
-- Check description
self.check = "Deals magical star damage to one enemy."

-- TP cost
self.cost = 16
Expand Down
2 changes: 2 additions & 0 deletions data/spells/starstorm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Star/Dark\nto All."
-- Menu description
self.description = "Star/Dark damage to all foes."
-- Check description
self.check = "Star/Dark damage to all foes."

-- TP cost
self.cost = 50
Expand Down
2 changes: 2 additions & 0 deletions data/spells/supersling.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function spell:init()
self.effect = "Healing\nService"
-- Menu description
self.description = "Slingshot healing bullets to an enemy, making them more likely to spare us."
-- Check description
self.check = "Slingshot healing bullets to an enemy, making\nthem more likely to spare us."

-- TP cost
self.cost = 32
Expand Down
2 changes: 2 additions & 0 deletions data/spells/tattle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "None"
-- Menu description
self.description = "Deals moderate Rude-elemental damage to\none foe. Depends on Attack & Magic."
-- Check description
self.check = {"Deals moderate Rude-elemental damage to\none foe.", "* Depends on Attack & Magic."}

-- TP cost
self.cost = 0
Expand Down
2 changes: 2 additions & 0 deletions data/spells/wavedash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Elec\nDamage"
-- Menu description
self.description = "Wave-Dashes and deals moderate damage to one\nfoe. Depends on Attack & Magic."
-- Check description
self.check = {"Wave-Dashes and deals moderate damage to one\nfoe.", "* Depends on Attack & Magic."}

-- TP cost
self.cost = 24
Expand Down
2 changes: 2 additions & 0 deletions data/spells/xslash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ function spell:init()
self.effect = "Physical\nDamage"
-- Menu description
self.description = "Deals large physical damage to 1 enemy."
-- Check description
self.check = "Deals large physical damage to 1 enemy."

-- TP cost
self.cost = 40
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion sharedlibs/magical-glass-redux/lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Just Another Random User", // contributor
],

"version": "v2.25.23",
"version": "v2.25.26",
"engineVer": "v0.10.0-dev",

"default": true, // Dark Place Rebirth
Expand Down
4 changes: 2 additions & 2 deletions sharedlibs/magical-glass-redux/lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3538,7 +3538,7 @@ function lib:init()
end)

Utils.hook(Spell, "getLightCastMessage", function(orig, self, user, target)
return "* "..user.chara:getNameOrYou().." cast "..self:getName().."."..(Utils.containsValue(self.tags, "heal") and "\n"..self:getHealMessage(user, target, lib.heal_amount) or "")
return "* "..user.chara:getNameOrYou().." cast "..self:getName().."."..(Utils.containsValue(self.tags, "heal") and self:getHealMessage(user, target, lib.heal_amount) and "\n"..self:getHealMessage(user, target, lib.heal_amount) or "")
end)

Utils.hook(Spell, "onLightWorldStart", function(orig, self, user, target)
Expand All @@ -3552,7 +3552,7 @@ function lib:init()
end)

Utils.hook(Spell, "getLightWorldCastMessage", function(orig, self, user, target)
return "* "..user:getNameOrYou().." cast "..self:getName().."."..(Utils.containsValue(self.tags, "heal") and "\n"..self:getWorldHealMessage(user, target, lib.heal_amount) or "")
return "* "..user:getNameOrYou().." cast "..self:getName().."."..(Utils.containsValue(self.tags, "heal") and self:getWorldHealMessage(user, target, lib.heal_amount) and "\n"..self:getWorldHealMessage(user, target, lib.heal_amount) or "")
end)

Utils.hook(Spell, "getWorldHealMessage", function(orig, self, user, target, amount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ function item:getLightBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* The rest of your inventory\nfilled up with Dog Residue."
}
else
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* ...",
"* You finished using it.",
"* "..user.chara:getNameOrYou().." finished using it.",
"* An uneasy atmosphere fills\nthe room."
}
end
Expand Down Expand Up @@ -133,4 +133,14 @@ function item:onBattleUse(user, target)
return true
end

function item:getBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = "* The rest of your inventory filled\nup with Dog Residue."
else
text = "* An uneasy atmosphere fills the room."
end
return super.getBattleText(self, user, target) .. "\n" .. text
end

return item
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ function item:getLightBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* The rest of your inventory\nfilled up with Dog Residue."
}
else
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* ...",
"* You finished using it.",
"* "..user.chara:getNameOrYou().." finished using it.",
"* An uneasy atmosphere fills\nthe room."
}
end
Expand Down Expand Up @@ -133,4 +133,14 @@ function item:onBattleUse(user, target)
return true
end

function item:getBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = "* The rest of your inventory filled\nup with Dog Residue."
else
text = "* An uneasy atmosphere fills the room."
end
return super.getBattleText(self, user, target) .. "\n" .. text
end

return item
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ function item:getLightBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* The rest of your inventory\nfilled up with Dog Residue."
}
else
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* ...",
"* You finished using it.",
"* "..user.chara:getNameOrYou().." finished using it.",
"* An uneasy atmosphere fills\nthe room."
}
end
Expand Down Expand Up @@ -133,4 +133,14 @@ function item:onBattleUse(user, target)
return true
end

function item:getBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = "* The rest of your inventory filled\nup with Dog Residue."
else
text = "* An uneasy atmosphere fills the room."
end
return super.getBattleText(self, user, target) .. "\n" .. text
end

return item
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ function item:getLightBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* The rest of your inventory\nfilled up with Dog Residue."
}
else
text = {
"* You used the Dog Residue.",
"* "..user.chara:getNameOrYou().." used the Dog Residue.",
"* ...",
"* You finished using it.",
"* "..user.chara:getNameOrYou().." finished using it.",
"* An uneasy atmosphere fills\nthe room."
}
end
Expand Down Expand Up @@ -133,4 +133,14 @@ function item:onBattleUse(user, target)
return true
end

function item:getBattleText(user, target)
local text
if #Game.inventory:getStorage("items") + 1 < Game.inventory:getStorage("items").max then
text = "* The rest of your inventory filled\nup with Dog Residue."
else
text = "* An uneasy atmosphere fills the room."
end
return super.getBattleText(self, user, target) .. "\n" .. text
end

return item
Loading