Improvements

This commit is contained in:
2022-11-26 13:52:38 -05:00
parent 512918f24c
commit cf67a8046b
46 changed files with 56 additions and 79 deletions

View File

@@ -75,6 +75,9 @@ mobs:register_mob(":people:female", {
punch_start = 200,
punch_end = 219
},
on_die = function(self, pos)
onPersonDie(self, pos)
end
})
mobs:register_mob(":people:male", {
@@ -128,4 +131,15 @@ mobs:register_mob(":people:male", {
punch_start = 200,
punch_end = 219
},
})
on_die = function(self, pos)
onPersonDie(self, pos)
end
})
onPersonDie = function(self, pos)
minetest.set_node(pos, {name = "literal_trash:bloodstain", param2 = 1})
destruction_counter.peopleKilled = destruction_counter.peopleKilled + 1
end

View File

@@ -1,2 +1,2 @@
name = ip_people
depends = mobs
depends = mobs, ip_destruction_counter