From e50374846a9f8b4649f11fc6909f1f46afc94177 Mon Sep 17 00:00:00 2001 From: DarkGod <darkgod@net-core.org> Date: Mon, 7 Oct 2013 16:19:10 +0200 Subject: [PATCH] Buffed starting gold to 15 --- game/engines/default/engine/utils.lua | 4 ++-- game/modules/tome/data/birth/descriptors.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/game/engines/default/engine/utils.lua b/game/engines/default/engine/utils.lua index 8967060214..82db9fe241 100644 --- a/game/engines/default/engine/utils.lua +++ b/game/engines/default/engine/utils.lua @@ -28,10 +28,10 @@ end -- (round away from zero): math.round(4.65, 0.1)=4.7, math.round(-4.475, 0.01) = -4.48 -- num = rouding multiplier to compensate for numerical rounding (default 1000000 for 6 digits accuracy) function math.round(v, mult, num) - mult = mult or 1 + mult = mult or 1 num = num or 1000000 v, mult = v*num, mult*num - return v >= 0 and math.floor((v + mult/2)/mult) * mult/num or math.ceil((v - mult/2)/mult) * mult/num + return v >= 0 and math.floor((v + mult/2)/mult) * mult/num or math.ceil((v - mult/2)/mult) * mult/num end function lpeg.anywhere (p) diff --git a/game/modules/tome/data/birth/descriptors.lua b/game/modules/tome/data/birth/descriptors.lua index 88bcc7a948..18703b8fa7 100644 --- a/game/modules/tome/data/birth/descriptors.lua +++ b/game/modules/tome/data/birth/descriptors.lua @@ -78,7 +78,7 @@ newBirthDescriptor{ mana_regen = 0, max_level = 50, - money = 10, + money = 15, resolvers.equip{ id=true, {type="lite", subtype="lite", name="brass lantern", ignore_material_restriction=true, ego_chance=-1000}, }, -- GitLab