forked from mtcontrib/minetest_returnmirror
Set default teleport cost to 200
This commit is contained in:
parent
c54f7c9ccc
commit
3d2abd1bb4
|
@ -17,7 +17,7 @@ Initially, a mirror has no teleport location set, so you have to set it before t
|
||||||
If the Mana mod [mana] is present, setting and teleporting costs mana. The default cost are:
|
If the Mana mod [mana] is present, setting and teleporting costs mana. The default cost are:
|
||||||
|
|
||||||
* Setting: 20
|
* Setting: 20
|
||||||
* Teleporting back to set position: 100
|
* Teleporting back to set position: 200
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
You can change the mana costs via minetest.conf. The following settings are used:
|
You can change the mana costs via minetest.conf. The following settings are used:
|
||||||
|
|
2
init.lua
2
init.lua
|
@ -1,5 +1,5 @@
|
||||||
returnmirror = {}
|
returnmirror = {}
|
||||||
returnmirror.cost_teleport = 100
|
returnmirror.cost_teleport = 200
|
||||||
returnmirror.cost_set = 20
|
returnmirror.cost_set = 20
|
||||||
|
|
||||||
if tonumber(minetest.setting_get("returnmirror_cost_teleport")) ~= nil then
|
if tonumber(minetest.setting_get("returnmirror_cost_teleport")) ~= nil then
|
||||||
|
|
Loading…
Reference in New Issue