mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-24 04:21:44 +01:00
Added increase_gold/bank funcs to prevent cash overflow
This commit is contained in:
@@ -670,7 +670,7 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
|
||||
if (!str_cmp(field, "gold")) {
|
||||
if (subfield && *subfield) {
|
||||
int addition = atoi(subfield);
|
||||
GET_GOLD(c) += addition;
|
||||
increase_gold(c, addition);
|
||||
}
|
||||
snprintf(str, slen, "%d", GET_GOLD(c));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user