1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-06 01:50:21 +02:00

Begin the mobs update

This commit is contained in:
Ombridride
2015-03-25 17:25:54 +01:00
parent e2a49d6552
commit 8d45d416be
11 changed files with 47 additions and 35 deletions

View File

@ -35,7 +35,7 @@ mobs:register_mob("mobs:rat", {
light_damage = 0,
-- right click to pick up rat
on_rightclick = function(self, clicker)
if clicker:is_player() and clicker:get_inventory() then
if clicker:is_player() and clicker:get_inventory() and clicker:get_inventory():room_for_item("main", "mobs:rat") then
clicker:get_inventory():add_item("main", "mobs:rat")
self.object:remove()
end