mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Add totem of undying into combat category
This commit is contained in:
parent
138005e40f
commit
dd4008ea73
3 changed files with 7 additions and 1 deletions
|
@ -23,7 +23,7 @@ do
|
||||||
return def.groups.tool or (def.tool_capabilities ~= nil and def.tool_capabilities.damage_groups == nil)
|
return def.groups.tool or (def.tool_capabilities ~= nil and def.tool_capabilities.damage_groups == nil)
|
||||||
end
|
end
|
||||||
local is_weapon_or_armor = function(def)
|
local is_weapon_or_armor = function(def)
|
||||||
return def.groups.weapon or def.groups.weapon_ranged or def.groups.ammo or ((def.groups.armor_head or def.groups.armor_torso or def.groups.armor_legs or def.groups.armor_feet or def.groups.horse_armor) and def.groups.non_combat_armor ~= 1)
|
return def.groups.weapon or def.groups.weapon_ranged or def.groups.ammo or def.groups.combat_item or ((def.groups.armor_head or def.groups.armor_torso or def.groups.armor_legs or def.groups.armor_feet or def.groups.horse_armor) and def.groups.non_combat_armor ~= 1)
|
||||||
end
|
end
|
||||||
if def.groups.building_block then
|
if def.groups.building_block then
|
||||||
table.insert(inventory_lists["blocks"], name)
|
table.insert(inventory_lists["blocks"], name)
|
||||||
|
|
1
mods/ITEMS/mcl_totems/depends.txt
Normal file
1
mods/ITEMS/mcl_totems/depends.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
mobs_mc
|
5
mods/ITEMS/mcl_totems/init.lua
Normal file
5
mods/ITEMS/mcl_totems/init.lua
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
-- Node is currently defined in mobs_mc.
|
||||||
|
-- TODO: Add full item definition here when status effects become a thing.
|
||||||
|
|
||||||
|
-- Add group for Creative Mode.
|
||||||
|
minetest.override_item("mobs_mc:totem", {groups = { combat_item=1}})
|
Loading…
Reference in a new issue