Page MenuHome1F616EMO Bugtracker

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/twi_shops/init.lua b/twi_shops/init.lua
new file mode 100644
index 0000000..eee5960
--- /dev/null
+++ b/twi_shops/init.lua
@@ -0,0 +1,44 @@
+-- twi_mods/twi_shops/init.lua
+-- Shop dialogs
+-- Copyright (C) 2024 1F616EMO
+-- SPDX-License-Identifier: LGPL-2.1-or-later
+
+local S = minetest.get_translator("twi_shops")
+
+local function check_atlatc(name)
+ if minetest.check_player_privs(name, { atlatc = true }) then
+ return 99
+ end
+ return 0
+end
+
+shop_dialog.register_dialog("twi_shops:advtrains", {
+ title = S("Advanced Trains Admin Shop"),
+
+ entries = {
+ {
+ item = ItemStack("advtrains_luaautomation:dtrack_placer"),
+ description = S("For LuaATC operators only. Advtrains track that runs LuaATC code."),
+ cost = 5,
+ max_amount = check_atlatc,
+ },
+ {
+ item = ItemStack("advtrains_luaautomation:mesecon_controller0000"),
+ description = S("For LuaATC operators only. Luacontroller that runs LuaATC code."),
+ cost = 5,
+ max_amount = check_atlatc,
+ },
+ {
+ item = ItemStack("advtrains_luaautomation:oppanel"),
+ description = S("For LuaATC operators only. Punch-operatable panel that runs LuaATC code."),
+ cost = 5,
+ max_amount = check_atlatc,
+ },
+ {
+ item = ItemStack("advtrains_luaautomation:pcnaming"),
+ description = S("For LuaATC operators only. Name passive components."),
+ cost = 10,
+ max_amount = check_atlatc,
+ },
+ }
+})
\ No newline at end of file
diff --git a/twi_shops/mod.conf b/twi_shops/mod.conf
new file mode 100644
index 0000000..ed49c84
--- /dev/null
+++ b/twi_shops/mod.conf
@@ -0,0 +1,2 @@
+name = twi_shops
+depends = shop_dialog, advtrains_interlocking, advtrains_luaautomation, advtrains_train_track

File Metadata

Mime Type
text/x-diff
Expires
Thu, Feb 26, 3:24 AM (6 d, 1 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
43/e0/7ff3d5ad3b2e966d30b2b850e9f1
Default Alt Text
(1 KB)

Event Timeline