Fix settings - this actually works OK.
This commit is contained in:
parent
123c866c84
commit
27fb2fa79b
@ -6,28 +6,5 @@
|
||||
-- the "easy" or "difficult" settings if you wish, or come up with your own values.
|
||||
--
|
||||
|
||||
-- more settings *MAY* be added to this file at a later stage, so make sure to get
|
||||
-- a fresh copy from the mod folder if you decide to use non-default settings here.
|
||||
|
||||
--[[
|
||||
-- easy --
|
||||
crops.chance = 4
|
||||
crops.interval = 30
|
||||
crops.light = 8
|
||||
--]]
|
||||
|
||||
-- normal --
|
||||
crops.chance = 8
|
||||
crops.interval = 30
|
||||
crops.light = 10
|
||||
crops.watercan = 25
|
||||
crops.watercan_max = 89
|
||||
crops.watercanuses = 20
|
||||
crops.max_damage = 50
|
||||
|
||||
--[[
|
||||
-- difficult --
|
||||
crops.chance = 16
|
||||
crops.interval = 30
|
||||
crops.light = 13
|
||||
--]]
|
||||
-- Valid values are "easy", "normal", and "difficult"
|
||||
crops.difficulty = "normal"
|
||||
|
12
init.lua
12
init.lua
@ -12,11 +12,16 @@ of the license, or (at your option) any later version.
|
||||
|
||||
crops = {}
|
||||
crops.plants = {}
|
||||
crops.settings = {}
|
||||
|
||||
local settings_easy = {
|
||||
chance = 4,
|
||||
interval = 30,
|
||||
light = 8,
|
||||
watercan = 25,
|
||||
watercan_max = 90,
|
||||
watercan_uses = 20,
|
||||
max_damage = 25
|
||||
}
|
||||
local settings_normal = {
|
||||
chance = 8,
|
||||
@ -27,13 +32,16 @@ local settings_normal = {
|
||||
watercan_uses = 20,
|
||||
max_damage = 50
|
||||
}
|
||||
local settings_hard = {
|
||||
local settings_difficult = {
|
||||
chance = 16,
|
||||
interval = 30,
|
||||
light = 13,
|
||||
watercan = 25,
|
||||
watercan_max = 100,
|
||||
watercan_uses = 20,
|
||||
max_damage = 100
|
||||
}
|
||||
|
||||
|
||||
local worldpath = minetest.get_worldpath()
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user