mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-01 09:57:19 +02:00
Remove rent code and cost per day
This commit is contained in:
parent
0bb44d02b5
commit
9d894e208d
41 changed files with 366 additions and 564 deletions
|
|
@ -1148,14 +1148,6 @@ void find_replacement(void *go, struct script_data *sc, trig_data *trig,
|
|||
snprintf(str, slen, "%d", GET_OBJ_COST(o));
|
||||
}
|
||||
|
||||
else if (!str_cmp(field, "cost_per_day")) {
|
||||
if (subfield && *subfield) {
|
||||
int addition = atoi(subfield);
|
||||
GET_OBJ_RENT(o) = MAX(1, addition + GET_OBJ_RENT(o));
|
||||
}
|
||||
snprintf(str, slen, "%d", GET_OBJ_RENT(o));
|
||||
}
|
||||
|
||||
else if (!str_cmp(field, "carried_by")) {
|
||||
if (o->carried_by)
|
||||
snprintf(str, slen,"%c%ld",UID_CHAR, char_script_id(o->carried_by));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue