mirror of
https://github.com/tbamud/tbamud.git
synced 2026-03-23 20:56:36 +01:00
Coins as items update 2
This commit is contained in:
parent
972d290126
commit
d4bda3ad4a
37 changed files with 736 additions and 779 deletions
|
|
@ -149,7 +149,7 @@ static void aff_apply_modify(struct char_data *ch, byte loc, sbyte mod, char *ms
|
|||
case APPLY_MANA: GET_MAX_MANA(ch) += mod; break;
|
||||
case APPLY_HIT: GET_MAX_HIT(ch) += mod; break;
|
||||
case APPLY_MOVE: GET_MAX_MOVE(ch) += mod; break;
|
||||
case APPLY_GOLD: break;
|
||||
case APPLY_COINS: break;
|
||||
case APPLY_EXP: break;
|
||||
|
||||
case APPLY_AC: GET_AC(ch) += mod; break;
|
||||
|
|
@ -424,9 +424,9 @@ static void adjust_char_coins(struct char_data *ch, int amount)
|
|||
return;
|
||||
|
||||
if (amount > 0)
|
||||
GET_GOLD(ch) = MIN(MAX_GOLD, GET_GOLD(ch) + amount);
|
||||
GET_COINS(ch) = MIN(MAX_COINS, GET_COINS(ch) + amount);
|
||||
else
|
||||
GET_GOLD(ch) = MAX(0, GET_GOLD(ch) + amount);
|
||||
GET_COINS(ch) = MAX(0, GET_COINS(ch) + amount);
|
||||
}
|
||||
|
||||
/* Give an object to a char. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue