Re-add rocketeer class

This commit is contained in:
philipmi 2021-02-07 21:53:20 +01:00
parent 81bd8ca9b2
commit 04c75c989d
6 changed files with 33 additions and 20 deletions

View file

@ -22,7 +22,7 @@ function give_initial_stuff.give_item(inv, item)
end
-- Don't duplicate stacks
if inv:contains_item("main", item:get_name()) then
if inv:contains_item("main", item:get_name()) and not inv:contains_item("main", "shooter_rocket:rocket") then
local safeguard = 0
local itemcount = item:get_count()-5
if itemcount < 0 then itemcount = 0 end