1
0
mirror of https://github.com/SmallJoker/exchange_shop.git synced 2025-07-05 01:30:29 +02:00

First version 🐈

This commit is contained in:
SmallJoker
2018-07-08 09:30:13 +02:00
commit 89d08b907b
11 changed files with 594 additions and 0 deletions

27
init.lua Normal file
View File

@ -0,0 +1,27 @@
exchange_shop = {}
exchange_shop.storage_size = 5 * 4
exchange_shop.shopname = "exchange_shop:shop"
local modpath = minetest.get_modpath("exchange_shop")
local has_currency = minetest.get_modpath("currency")
local has_bitchange = minetest.get_modpath("bitchange")
local migrate_currency = true -- TODO testing!
local slow_migrate_currency = false
if has_bitchange then
minetest.register_alias("exchange_shop:shop", "bitchange:shop")
exchange_shop.shopname = "bitchange:shop"
else
dofile(modpath .. "/shop_functions.lua")
dofile(modpath .. "/shop.lua")
end
if has_currency then
if migrate_currency then
dofile(modpath .. "/currency_migrate.lua")
end
if slow_migrate_currency then
dofile(modpath .. "/currency_override.lua")
end
end