P4 hazards: food spoilage with rot speed setting, smoking rack and salt, food poisoning, harsher blizzards, hard winters with lake ice, lightning on trees, snow on roofs (protocol 11)
This commit is contained in:
@@ -69,6 +69,11 @@ static func difficulty(k: String) -> float:
|
||||
var d: Variant = v("difficulty")
|
||||
return float(DIFFICULTY.get(String(d) if d != null else "normal", DIFFICULTY.normal)[k])
|
||||
|
||||
## How fast food rots: "normal", "slow" (half speed) or "off".
|
||||
static func rot() -> String:
|
||||
var r: Variant = v("rot")
|
||||
return String(r) if r != null else "normal"
|
||||
|
||||
static func grace_days() -> int:
|
||||
var g: Variant = v("wolf_grace_days")
|
||||
return clampi(int(g), 0, 10) if g != null else 3
|
||||
|
||||
Reference in New Issue
Block a user