mirror of
https://github.com/cave-story-randomizer/cave-story-randomizer
synced 2024-11-09 00:14:37 +00:00
Added Life Pot.
This commit is contained in:
parent
e02ce13c62
commit
627f689d9c
|
@ -29,6 +29,18 @@ function lifeCapsule(t)
|
|||
}
|
||||
end
|
||||
|
||||
function item(t)
|
||||
assert(t.name and t.map and t.id and t.getText)
|
||||
return {
|
||||
name = t.name,
|
||||
map = t.map,
|
||||
getText = t.getText,
|
||||
command = ("<IT+00%s"):format(t.id),
|
||||
displayCmd = ("<GIT10%s"):format(t.id),
|
||||
music = t.music or "<CMU0010"
|
||||
}
|
||||
end
|
||||
|
||||
return {
|
||||
-------------------
|
||||
-- WEAPONS --
|
||||
|
@ -69,6 +81,7 @@ return {
|
|||
-- lEggCorridorB = lifeCapsule({
|
||||
-- hp = 4,
|
||||
-- map = "Eggs",
|
||||
-- label = "0401"
|
||||
-- }),
|
||||
lGrasstown = lifeCapsule({
|
||||
hp = 5,
|
||||
|
@ -118,16 +131,23 @@ return {
|
|||
-----------
|
||||
-- ITEMS --
|
||||
-----------
|
||||
iPanties = {
|
||||
iPanties = item({
|
||||
name = "Curly's Panties",
|
||||
map = "CurlyS",
|
||||
id = "35",
|
||||
getText = {
|
||||
"Found =Curly's Panties=.",
|
||||
"Found =Curly's Underwear=.",
|
||||
},
|
||||
command = "<IT+0035",
|
||||
displayCmd = "<GIT1035",
|
||||
},
|
||||
music = "",
|
||||
}),
|
||||
iLifePot = item({
|
||||
name = "Life Pot",
|
||||
map = "Cent",
|
||||
id = "15",
|
||||
getText = "Got a =Life Pot=!",
|
||||
label = "0450",
|
||||
}),
|
||||
}
|
||||
|
||||
--[[
|
||||
|
@ -189,6 +209,9 @@ Max health increased by 5!<NOD<END
|
|||
<KEY<DNP0420<MSG<GIT1035<IT+0035
|
||||
Found Curly's Panties.<NOD<END
|
||||
|
||||
<CMU0010<GIT1015<IT+0015<GIT1015Got a =Life Pot=!<WAI0160<NOD<GIT0000<RMU<EVE0451
|
||||
<END
|
||||
|
||||
-- TODO:
|
||||
|
||||
#0401
|
||||
|
|
|
@ -62,7 +62,7 @@ end
|
|||
|
||||
function C:_replaceAttribute(original, replacement, attribute)
|
||||
local originalTexts = original[attribute]
|
||||
if originalTexts == nil then
|
||||
if originalTexts == nil or originalTexts == '' then
|
||||
return
|
||||
elseif type(originalTexts) == 'string' then
|
||||
originalTexts = {originalTexts}
|
||||
|
|
Loading…
Reference in a new issue