1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Fixed 3d_armor's naming convention

- Fixed names. Convention : 3d_armor:<piece>_<material>
This commit is contained in:
LeMagnesium
2015-07-24 13:31:21 +02:00
parent f5fb315c71
commit fdd5c72289
5 changed files with 23 additions and 23 deletions

View File

@ -164,7 +164,7 @@ pclasses.api.register_class("warrior", function(player)
shift_class = true
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
shift_class = shift_class and (inv:contains_item("armor", "3d_armor:" .. piece .. "_mithril")
or inv:contains_item("armor", "3d_armor:" .. piece .. "_black_mithril_plated"))
or inv:contains_item("armor", "3d_armor:" .. piece .. "_blackmithril"))
end
return shift_class
end)
@ -177,8 +177,8 @@ pclasses.api.register_class("hunter", function(player)
end
shift_class = true
for _,piece in pairs({"chestplate", "leggings", "boots", "helmet"}) do
shift_class = shift_class and (inv:contains_item("armor", "3d_armor:" .. piece .. "_reinforced_leather_hunter")
or inv:contains_item("armor", "3d_armor:" .. piece .. "_hardened_leather_hunter"))
shift_class = shift_class and (inv:contains_item("armor", "3d_armor:" .. piece .. "_reinforcedleather")
or inv:contains_item("armor", "3d_armor:" .. piece .. "_hardenedleather"))
end
return shift_class
end)