Added potions for new effects

* also added some new brewing recipes
This commit is contained in:
the-real-herowl 2024-04-09 00:25:31 +02:00
parent ced2741686
commit 8cfe96a955
3 changed files with 246 additions and 2 deletions

View file

@ -569,7 +569,7 @@ mcl_potions.register_effect({
end end
EF.glowing[object].waypoints = {} EF.glowing[object].waypoints = {}
end, end,
particle_color = "#FFFF00", particle_color = "#FFFF77",
uses_factor = false, uses_factor = false,
}) })

View file

@ -398,6 +398,21 @@ local awkward_table = {
["mcl_mobitems:spider_eye"] = "mcl_potions:poison", ["mcl_mobitems:spider_eye"] = "mcl_potions:poison",
["mcl_flowers:wither_rose"] = "mcl_potions:withering", ["mcl_flowers:wither_rose"] = "mcl_potions:withering",
["mcl_mobitems:rabbit_foot"] = "mcl_potions:leaping", ["mcl_mobitems:rabbit_foot"] = "mcl_potions:leaping",
["mcl_flowers:fourleaf_clover"] = "mcl_potions:luck",
["mcl_farming:potato_item_poison"] = "mcl_potions:nausea",
-- TODO slow falling
-- TODO levitation?
-- TODO darkness?
-- TODO absorption
-- TODO health boost?
-- TODO resistance
-- TODO turtle master?
-- TODO frost
-- TODO blindness?
-- TODO food poisoning?
-- TODO saturation?
-- TODO haste
} }
-- API -- API
-- register a potion recipe brewed from awkward potion -- register a potion recipe brewed from awkward potion
@ -416,6 +431,7 @@ end
mcl_potions.register_ingredient_potion("mcl_potions:awkward", awkward_table) mcl_potions.register_ingredient_potion("mcl_potions:awkward", awkward_table)
-- TODO mundane and thick potion recipes -- TODO mundane and thick potion recipes
-- TODO glowing out of thick
local mod_table = { } local mod_table = { }
@ -442,6 +458,8 @@ local inversion_table = {
["mcl_potions:leaping"] = "mcl_potions:slowness", ["mcl_potions:leaping"] = "mcl_potions:slowness",
["mcl_potions:night_vision"] = "mcl_potions:invisibility", ["mcl_potions:night_vision"] = "mcl_potions:invisibility",
["mcl_potions:poison"] = "mcl_potions:harming", ["mcl_potions:poison"] = "mcl_potions:harming",
["mcl_potions:luck"] = "mcl_potions:bad_luck",
["mcl_potions:haste"] = "mcl_potions:fatigue",
} }
-- API -- API
function mcl_potions.register_inversion_recipe(input, output) function mcl_potions.register_inversion_recipe(input, output)

View file

@ -489,7 +489,7 @@ mcl_potions.register_potion({
desc_suffix = S("of Withering"), desc_suffix = S("of Withering"),
_tt = nil, _tt = nil,
_longdesc = S("Applies the withering effect which deals damage at a regular interval and can kill."), _longdesc = S("Applies the withering effect which deals damage at a regular interval and can kill."),
color = "#000000", color = "#292929",
_effect_list = { _effect_list = {
withering = {dur=mcl_potions.DURATION_POISON}, withering = {dur=mcl_potions.DURATION_POISON},
}, },
@ -580,3 +580,229 @@ mcl_potions.register_potion({
has_arrow = true, has_arrow = true,
}) })
mcl_potions.register_potion({
name = "slow_falling",
desc_suffix = S("of Slow Falling"),
_tt = nil,
_longdesc = S("Instead of falling, you descend gracefully."),
color = "#ACCCFF",
_effect_list = {
slow_falling = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "levitation",
desc_suffix = S("of Levitation"),
_tt = nil,
_longdesc = S("Floats body slowly upwards."),
color = "#420E7E",
_effect_list = {
levitation = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "darkness",
desc_suffix = S("of Darkness"),
_tt = nil,
_longdesc = S("Surrounds with darkness."),
color = "#000000",
_effect_list = {
darkness = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "glowing",
desc_suffix = S("of Glowing"),
_tt = nil,
_longdesc = S("Highlights for others to see."),
color = "#FFFF77",
_effect_list = {
glowing = {},
},
has_arrow = false, -- TODO add a spectral arrow instead (in mcl_bows?)
})
mcl_potions.register_potion({
name = "health_boost",
desc_suffix = S("of Health Boost"),
_tt = nil,
_longdesc = S("Increases health."),
color = "#FF2222",
_effect_list = {
health_boost = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "absorption",
desc_suffix = S("of Absorption"),
_tt = nil,
_longdesc = S("Absorbs some incoming damage."),
color = "#B59500",
_effect_list = {
absorption = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "resistance",
desc_suffix = S("of Resistance"),
_tt = nil,
_longdesc = S("Descreases damage taken."),
color = "#2552A5",
_effect_list = {
resistance = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "resistance",
desc_suffix = S("of Resistance"),
_tt = nil,
_longdesc = S("Descreases damage taken."),
color = "#2552A5",
_effect_list = {
resistance = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "turtle_master",
desc_suffix = S("of Turtle Master"),
_tt = nil,
_longdesc = S("Descreases damage taken at the cost of speed."),
color = "#255235",
_effect_list = {
resistance = {
level = 3,
dur = 20,
},
slowness = {
level = 4,
level_scaling = 2,
dur = 20,
},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "luck",
desc_suffix = S("of Luck"),
_tt = nil,
_longdesc = S("Increases luck."),
color = "#7BFF42",
_effect_list = {
luck = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "bad_luck",
desc_suffix = S("of Bad Luck"),
_tt = nil,
_longdesc = S("Decreases luck."),
color = "#887343",
_effect_list = {
bad_luck = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "frost",
desc_suffix = S("of Frost"),
_tt = nil,
_longdesc = S("Freezes..."),
color = "#5B7DAA",
_effect_list = {
frost = {},
},
has_arrow = true,
-- TODO implement effect stacking?
})
mcl_potions.register_potion({
name = "blindness",
desc_suffix = S("of Blindness"),
_tt = nil,
_longdesc = S("Impairs sight."),
color = "#586868",
_effect_list = {
blindness = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "nausea",
desc_suffix = S("of Nausea"),
_tt = nil,
_longdesc = S("Disintegrates senses."),
color = "#715C7F",
_effect_list = {
nausea = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "food_poisoning",
desc_suffix = S("of Food Poisoning"),
_tt = nil,
_longdesc = S("Moves bowels too fast."),
color = "#83A061",
_effect_list = {
food_poisoning = {},
},
has_arrow = true,
-- TODO implement effect stacking?
})
mcl_potions.register_potion({
name = "saturation",
desc_suffix = S("of Saturation"),
_tt = nil,
_longdesc = S("Satisfies hunger."),
color = "#CEAE29",
_effect_list = {
saturation = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "haste",
desc_suffix = S("of Haste"),
_tt = nil,
_longdesc = S("Increases digging and attack speed."),
color = "#FFFF00",
_effect_list = {
haste = {},
},
has_arrow = true,
})
mcl_potions.register_potion({
name = "fatigue",
desc_suffix = S("of Fatigue"),
_tt = nil,
_longdesc = S("Decreases digging and attack speed."),
color = "#64643D",
_effect_list = {
fatigue = {},
},
has_arrow = true,
})