forked from Sokomine/yl_speak_up
removed old_staff_tool_compatibility.lua
This commit is contained in:
parent
b93186d3c2
commit
c7fbdb84e4
1
init.lua
1
init.lua
@ -244,7 +244,6 @@ yl_speak_up.reload = function(modpath, log_entry)
|
|||||||
-- -- used by the above
|
-- -- used by the above
|
||||||
-- TODO dofile(modpath .. "fs/fs_add_quest_steps.lua")
|
-- TODO dofile(modpath .. "fs/fs_add_quest_steps.lua")
|
||||||
-- setting skin, wielded item etc.
|
-- setting skin, wielded item etc.
|
||||||
dofile(modpath .. "old_staff_tool_compatibility.lua")
|
|
||||||
dofile(modpath .. "api/api_fashion.lua")
|
dofile(modpath .. "api/api_fashion.lua")
|
||||||
-- TODO dofile(modpath .. "fs/fs_fashion.lua")
|
-- TODO dofile(modpath .. "fs/fs_fashion.lua")
|
||||||
-- TODO dofile(modpath .. "fs/fs_fashion_extended.lua")
|
-- TODO dofile(modpath .. "fs/fs_fashion_extended.lua")
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
function yl_speak_up.fashion(player, obj)
|
|
||||||
local luaentity = obj:get_luaentity()
|
|
||||||
local pname = player:get_player_name()
|
|
||||||
local npc_id = luaentity.yl_speak_up.id
|
|
||||||
local skins = luaentity.yl_speak_up.skins
|
|
||||||
local n_id = "n_" .. npc_id
|
|
||||||
local t = luaentity.textures
|
|
||||||
|
|
||||||
yl_speak_up.speak_to[pname] = {}
|
|
||||||
yl_speak_up.speak_to[pname].n_id = n_id
|
|
||||||
yl_speak_up.speak_to[pname].obj = obj
|
|
||||||
yl_speak_up.speak_to[pname].textures = t
|
|
||||||
yl_speak_up.speak_to[pname].skins = yl_speak_up.textures2skin(t)
|
|
||||||
|
|
||||||
local dialog = yl_speak_up.load_dialog(n_id, false)
|
|
||||||
if next(dialog) then
|
|
||||||
yl_speak_up.speak_to[pname].n_npc = dialog.n_npc
|
|
||||||
else
|
|
||||||
yl_speak_up.speak_to[pname].n_npc = "Unknown"
|
|
||||||
end
|
|
||||||
|
|
||||||
yl_speak_up.show_fs(player, "fashion")
|
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user