From e23201a2512787bbf80d3eec1b0206823e93c5b2 Mon Sep 17 00:00:00 2001 From: Niklp Date: Sun, 26 May 2024 17:35:39 +0200 Subject: [PATCH] Add mesecons support for locked doors (#35) --- my_castle_doors/locked.lua | 2 +- my_cottage_doors/locked.lua | 2 +- my_default_doors/locked.lua | 2 +- my_fancy_doors/locked.lua | 2 +- my_hidden_doors/init.lua | 4 ++-- my_misc_doors/locked.lua | 2 +- my_old_doors/locked.lua | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/my_castle_doors/locked.lua b/my_castle_doors/locked.lua index 6c4115a..e89aadb 100644 --- a/my_castle_doors/locked.lua +++ b/my_castle_doors/locked.lua @@ -15,7 +15,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image } local function add_door(desc, img) - doors.register("my_castle_doors:"..img.."_locked", { + mydoors.register_door("my_castle_doors:"..img.."_locked", { description = desc.." Locked", inventory_image = "mydoors_"..img.."_inv.png", groups = {choppy=2,cracky=2,door=1}, diff --git a/my_cottage_doors/locked.lua b/my_cottage_doors/locked.lua index b2d5f9e..1b6e7cb 100644 --- a/my_cottage_doors/locked.lua +++ b/my_cottage_doors/locked.lua @@ -4,7 +4,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image } local function add_door(desc, img) - doors.register_door("my_cottage_doors:"..img.."_locked", { + mydoors.register_door("my_cottage_doors:"..img.."_locked", { description = desc.." Locked", inventory_image = "mycdoors_"..img.."_inv.png", groups = {choppy=2,cracky=2,door=1}, diff --git a/my_default_doors/locked.lua b/my_default_doors/locked.lua index e165454..f000262 100644 --- a/my_default_doors/locked.lua +++ b/my_default_doors/locked.lua @@ -7,7 +7,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image } local function add_door(num, desc, img, itm) - doors.register_door("my_default_doors:door"..num.."_locked", { + mydoors.register_door("my_default_doors:door"..num.."_locked", { description = desc.." Locked", inventory_image = "mydoors_"..img.."_inv.png", groups = {choppy=2,cracky=2,door=1}, diff --git a/my_fancy_doors/locked.lua b/my_fancy_doors/locked.lua index 01c37e7..c6bc0de 100644 --- a/my_fancy_doors/locked.lua +++ b/my_fancy_doors/locked.lua @@ -10,7 +10,7 @@ local fdoor_list = { --Number , Description , Inven Image , Image } local function add_door(desc, img) - doors.register_door("my_fancy_doors:"..img.."_locked", { + mydoors.register_door("my_fancy_doors:"..img.."_locked", { description = desc.." Locked", inventory_image = "myfdoors_"..img.."_inv.png", groups = {choppy=2,cracky=2,door=1}, diff --git a/my_hidden_doors/init.lua b/my_hidden_doors/init.lua index 26aea2f..1a8795b 100644 --- a/my_hidden_doors/init.lua +++ b/my_hidden_doors/init.lua @@ -12,7 +12,7 @@ local hdoor_list = { --Number , Description , default image local function add_door(img, desc) -- Cannot add locked doors because the tooltip defies the purpose of being a hidden door - doors.register_door("my_hidden_doors:hidden_door"..img, { + mydoors.register_door("my_hidden_doors:hidden_door"..img, { description = desc, inventory_image = "mydoors_"..img.."_inv.png", groups = {choppy=2,cracky=2,door=1}, @@ -26,7 +26,7 @@ for _,hdoor in ipairs(hdoor_list) do add_door(unpack(hdoor)) end -doors.register_door("my_hidden_doors:hidden_door_grey", { +mydoors.register_door("my_hidden_doors:hidden_door_grey", { description = "Grey Door", inventory_image = "mydoors_grey_inv.png", groups = {choppy=2,cracky=2,door=1}, diff --git a/my_misc_doors/locked.lua b/my_misc_doors/locked.lua index 336a9eb..3bc3b18 100644 --- a/my_misc_doors/locked.lua +++ b/my_misc_doors/locked.lua @@ -7,7 +7,7 @@ local mdoor_list = { --Number , Description , Inven Image , Image } local function add_door(desc, img) - doors.register_door("my_misc_doors:"..img.."_locked", { + mydoors.register_door("my_misc_doors:"..img.."_locked", { description = desc.." Locked", inventory_image = "mymdoors_"..img.."_inv.png", groups = {choppy=2,cracky=2,door=1}, diff --git a/my_old_doors/locked.lua b/my_old_doors/locked.lua index 9e9c54f..67d7f46 100644 --- a/my_old_doors/locked.lua +++ b/my_old_doors/locked.lua @@ -6,7 +6,7 @@ local cdoor_list = { --Number , Description , Inven Image , Image } local function add_door(num, desc, img) - doors.register_door("my_old_doors:door"..num.."_locked", { + mydoors.register_door("my_old_doors:door"..num.."_locked", { description = desc.." Locked", inventory_image = "mydoors_"..img.."_inv.png", groups = {choppy=2,cracky=2,door=1},