summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2014-07-25 12:45:06 +0200
committerWuzzy <almikes@aol.com>2014-07-25 12:45:06 +0200
commit74b56345bb1b0da0127baee02f02181777f55346 (patch)
treea3a15a67019a6448e7118940dca8a960dbca3fef /init.lua
parentd4666ea8aaa8dc5a0063a47d9c399e544af998bc (diff)
Add the missing potions
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua53
1 files changed, 51 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 7d566ba..721537f 100644
--- a/init.lua
+++ b/init.lua
@@ -46,6 +46,8 @@ playereffects.register_effect_type("pepspeedminus", "Low speed", nil, {"speed"},
player:set_physics_override({speed=1})
end
)
+playereffects.register_effect_type("pepspeedreset", "Speed neutralizer", nil, {"speed"},
+ function() end, function() end)
playereffects.register_effect_type("pepjumpplus", "High jump", nil, {"jump"},
function(player)
player:set_physics_override({jump=2})
@@ -62,6 +64,8 @@ playereffects.register_effect_type("pepjumpminus", "Low jump", nil, {"jump"},
player:set_physics_override({jump=1})
end
)
+playereffects.register_effect_type("pepjumpreset", "Jump height neutralizer", nil, {"jump"},
+ function() end, function() end)
playereffects.register_effect_type("pepgrav0", "No gravity", nil, {"gravity"},
function(player)
player:set_physics_override({gravity=0})
@@ -70,6 +74,8 @@ playereffects.register_effect_type("pepgrav0", "No gravity", nil, {"gravity"},
player:set_physics_override({gravity=1})
end
)
+playereffects.register_effect_type("pepgravreset", "Gravity neutralizer", nil, {"gravity"},
+ function() end, function() end)
playereffects.register_effect_type("pepregen", "Regeneration", nil, {"health"},
function(player)
player:set_hp(player:get_hp()+1)
@@ -82,13 +88,20 @@ playereffects.register_effect_type("pepregen2", "Strong regeneration", nil, {"he
end,
nil, nil, nil, 1
)
-
playereffects.register_effect_type("peppoison", "Poisoned", nil, {"health"},
function(player)
- player:set_hp(player:get_hp()-1)
+ player:set_hp(player:get_hp()+1)
end,
nil, nil, nil, 2
)
+playereffects.register_effect_type("peppoison2", "Badly poisoned", nil, {"health"},
+ function(player)
+ player:set_hp(player:get_hp()-2)
+ end,
+ nil, nil, nil, 1
+)
+playereffects.register_effect_type("pepantidote", "Antidote", nil, {"health"},
+ function() end, function() end)
playereffects.register_effect_type("pepbreath", "Perfect breath", nil, {"breath"},
function(player)
player:set_breath(player:get_breath()+2)
@@ -116,6 +129,12 @@ pep.register_potion({
duration = 30
})
pep.register_potion({
+ basename = "speedreset",
+ contentstring = "Speed Neutralizer",
+ effect_type = "pepspeedreset",
+ duration = 0
+})
+pep.register_potion({
basename = "breath",
contentstring = "Air Potion",
effect_type = "pepbreath",
@@ -134,12 +153,36 @@ pep.register_potion({
duration = 10,
})
pep.register_potion({
+ basename = "poison",
+ contentstring = "Poison",
+ effect_type = "peppoison",
+ duration = 10,
+})
+pep.register_potion({
+ basename = "regen2",
+ contentstring = "Potent Poison",
+ effect_type = "peppoison2",
+ duration = 10,
+})
+pep.register_potion({
+ basename = "antidote",
+ contentstring = "Antidote",
+ effect_type = "pepantidote",
+ duration = 0
+})
+pep.register_potion({
basename = "grav0",
contentstring = "Non-Gravity Potion",
effect_type = "pepgrav0",
duration = 20,
})
pep.register_potion({
+ basename = "gravreset",
+ contentstring = "Gravity Neutralizer",
+ effect_type = "pepgravreset",
+ duration = 0,
+})
+pep.register_potion({
basename = "jumpplus",
contentstring = "High Jumping Potion",
effect_type = "pepjumpplus",
@@ -151,6 +194,12 @@ pep.register_potion({
effect_type = "pepjumpminus",
duration = 30,
})
+pep.register_potion({
+ basename = "jumpreset",
+ contentstring = "Jump Neutralizer",
+ effect_type = "pepjumpreset",
+ duration = 0,
+})
--[=[ register crafts ]=]
--[[ normal potions ]]