forked from Sokomine/yl_speak_up
add textures for yl_speak_up: and yl_npc: mobs
This commit is contained in:
parent
ae407e1615
commit
9df24d1131
@ -3,7 +3,7 @@
|
||||
-- Else ignore this file.
|
||||
--
|
||||
-- taken from yl_speak_up from yl
|
||||
local function add_skins_and_capes(temp, races)
|
||||
local function add_skins_and_capes(temp, races, modname)
|
||||
--[[ Let's see if the files are the ones we want. Format is
|
||||
yl_npc_main_name.png <-- Those are the ones we want
|
||||
yl_npc_cape_name.png
|
||||
@ -11,11 +11,11 @@ local function add_skins_and_capes(temp, races)
|
||||
]]--
|
||||
|
||||
for _, race in ipairs(races) do
|
||||
if(not(yl_speak_up.mob_skins["yl_speak_up:"..race])) then
|
||||
yl_speak_up.mob_skins["yl_speak_up:"..race] = {}
|
||||
if(not(yl_speak_up.mob_skins[modname..race])) then
|
||||
yl_speak_up.mob_skins[modname..race] = {}
|
||||
end
|
||||
if(not(yl_speak_up.mob_capes["yl_speak_up:"..race])) then
|
||||
yl_speak_up.mob_capes["yl_speak_up:"..race] = {}
|
||||
if(not(yl_speak_up.mob_capes[modname..race])) then
|
||||
yl_speak_up.mob_capes[modname..race] = {}
|
||||
end
|
||||
end
|
||||
|
||||
@ -23,29 +23,30 @@ local function add_skins_and_capes(temp, races)
|
||||
local s = string.split(v, "_")
|
||||
if s[1] == "yl" and s[2] == "npc" and s[3] == "main" then
|
||||
for i, race in ipairs(races) do
|
||||
table.insert(yl_speak_up.mob_skins["yl_speak_up:"..race], v)
|
||||
table.insert(yl_speak_up.mob_skins[modname..race], v)
|
||||
end
|
||||
end
|
||||
if s[1] == "yl" and s[2] == "npc" and s[3] == "cape" then
|
||||
for i, race in ipairs(races) do
|
||||
table.insert(yl_speak_up.mob_capes["yl_speak_up:"..race], v)
|
||||
table.insert(yl_speak_up.mob_capes[modname..race], v)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for _, race in ipairs(races) do
|
||||
if(#yl_speak_up.mob_skins["yl_speak_up:"..race] < 1) then
|
||||
yl_speak_up.mob_skins["yl_speak_up:"..race] = {"yl_speak_up_main_default.png"}
|
||||
if(#yl_speak_up.mob_skins[modname..race] < 1) then
|
||||
yl_speak_up.mob_skins[modname..race] = {"yl_speak_up_main_default.png"}
|
||||
end
|
||||
if(#yl_speak_up.mob_capes["yl_speak_up:"..race] < 1) then
|
||||
yl_speak_up.mob_capes["yl_speak_up:"..race] = {"yl_npc_cape_default.png"}
|
||||
if(#yl_speak_up.mob_capes[modname..race] < 1) then
|
||||
yl_speak_up.mob_capes[modname..race] = {"yl_npc_cape_default.png"}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- do all the things that have to be done when yl_speak_up is initialized or reloaded
|
||||
add_skins_and_capes(yl_speak_up_addons.file_list, {"dwarf","elf","goblin","human","npc","orc"})
|
||||
add_skins_and_capes(yl_speak_up_addons.file_list, {"dwarf","elf","goblin","human","npc","orc"}, "yl_speak_up:")
|
||||
add_skins_and_capes(yl_speak_up_addons.file_list, {"dwarf","elf","goblin","human","npc","orc"}, "yl_npc:")
|
||||
|
||||
-- Tribe Miocene (Obsidian Flans)
|
||||
yl_speak_up.mesh_data["zmobs_lava_flan.x"] = { texture_index = 1, }
|
||||
|
Loading…
Reference in New Issue
Block a user