summaryrefslogtreecommitdiffstats
path: root/src/game-server/being.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r--src/game-server/being.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index c2228dc..a01126f 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -528,6 +528,11 @@ bool Being::recalculateBaseAttribute(unsigned int attr)
// Provisional
newBase = 2000.0 + getModifiedAttribute(ATTR_STR) * 180.0;
break;
+ case ATTR_MONEY:
+ // Set the money to 0 if it was never set before.
+ if (getModifiedAttribute(ATTR_MONEY) < 0)
+ newBase = 0.0;
+ break;
}
if (newBase != getAttribute(attr))
{