mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Add tile image in class switches' parameters and tweak colors
- Refers to #216
This commit is contained in:
@ -10,7 +10,9 @@ pclasses.api.register_class("admin", {
|
||||
on_assigned = function(pname)
|
||||
minetest.chat_send_player(pname, "Hello admin.")
|
||||
end,
|
||||
switch_color = {r = 255, g = 00, b = 224}
|
||||
switch_params = {
|
||||
color = {r = 255, g = 00, b = 224}
|
||||
}
|
||||
})
|
||||
|
||||
pclasses.api.reserve_item("admin", "3d_armor:helmet_admin")
|
||||
|
@ -21,7 +21,10 @@ pclasses.api.register_class("hunter", {
|
||||
on_unassigned = function(pname)
|
||||
sprint.set_default_maxstamina(pname)
|
||||
end,
|
||||
switch_color = {r = 60, g = 75, b = 00}
|
||||
switch_params = {
|
||||
color = {r = 30, g = 170, b = 00},
|
||||
tile = "default_wood.png"
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
@ -16,7 +16,10 @@ pclasses.api.register_class("warrior", {
|
||||
on_unassigned = function(pname)
|
||||
sprint.set_default_maxstamina(pname)
|
||||
end,
|
||||
switch_color = {r = 00, g = 00, b = 114}
|
||||
switch_params = {
|
||||
color = {r = 06, g = 06, b = 30},
|
||||
tile = "default_steel_block.png"
|
||||
}
|
||||
})
|
||||
|
||||
pclasses.api.reserve_item("warrior", "moreores:sword_mithril")
|
||||
|
Reference in New Issue
Block a user