mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-19 14:08:06 +01:00
Added Questpoints. --Rumble
This commit is contained in:
parent
140fcc2be1
commit
48a2738d6a
16 changed files with 149 additions and 204 deletions
|
|
@ -869,7 +869,16 @@ in the vault (vnum: 453) now and then. you can just use
|
|||
snprintf(str, slen, "%d", GET_PRACTICES(c));
|
||||
}
|
||||
break;
|
||||
case 'r':
|
||||
case 'q':
|
||||
if (!str_cmp(field, "questpoints")) {
|
||||
if (subfield && *subfield) {
|
||||
int addition = atoi(subfield);
|
||||
GET_QUESTPOINTS(c) += addition;
|
||||
}
|
||||
snprintf(str, slen, "%d", GET_QUESTPOINTS(c));
|
||||
}
|
||||
break;
|
||||
case 'r':
|
||||
if (!str_cmp(field, "room")) { /* in NOWHERE, return the void */
|
||||
/* see note in dg_scripts.h */
|
||||
#ifdef ACTOR_ROOM_IS_UID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue