mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-23 18:50:13 +01:00
Added increase_gold/bank funcs to prevent cash overflow
This commit is contained in:
parent
a95ac76ef7
commit
4892b22a51
13 changed files with 230 additions and 101 deletions
|
|
@ -837,7 +837,7 @@ int damage(struct char_data *ch, struct char_data *victim, int dam, int attackty
|
|||
{
|
||||
happy_gold = (long)(GET_GOLD(victim) * (((float)(HAPPY_GOLD))/(float)100));
|
||||
happy_gold = MAX(0, happy_gold);
|
||||
GET_GOLD(victim) += happy_gold;
|
||||
increase_gold(victim, happy_gold);
|
||||
}
|
||||
local_gold = GET_GOLD(victim);
|
||||
sprintf(local_buf,"%ld", (long)local_gold);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue