Revert to old grenade behavior

This commit is contained in:
LoneWolfHT 2020-10-26 14:24:03 -07:00
parent 408f6286a1
commit 27f36d5d24
2 changed files with 12 additions and 12 deletions

View file

@ -290,13 +290,13 @@ crafting.register_recipe({
level = 1,
})
crafting.register_recipe({
type = "inv",
output = "grenades:frag_sticky 1",
items = { "grenades:frag", "default:stick 4" },
always_known = true,
level = 1,
})
-- crafting.register_recipe({
-- type = "inv",
-- output = "grenades:frag_sticky 1",
-- items = { "grenades:frag", "default:stick 4" },
-- always_known = true,
-- level = 1,
-- })
crafting.register_recipe({
type = "inv",

View file

@ -73,14 +73,14 @@ local fragdef = {
end,
}
grenades.register_grenade("grenades:frag", table.copy(fragdef))
fragdef.description = "Sticky Frag grenade (Sticks to surfaces)"
fragdef.image = "grenades_frag_sticky.png"
-- fragdef.description = "Sticky Frag grenade (Sticks to surfaces)"
-- fragdef.image = "grenades_frag_sticky.png"
fragdef.on_collide = function(obj)
return "stop"
return true
end
grenades.register_grenade("grenades:frag_sticky", fragdef)
grenades.register_grenade("grenades:frag", table.copy(fragdef))
--grenades.register_grenade("grenades:frag_sticky", fragdef)
-- Flashbang Grenade