Added Questpoints. --Rumble

This commit is contained in:
Rumble
2007-04-02 00:32:54 +00:00
parent 140fcc2be1
commit 48a2738d6a
16 changed files with 149 additions and 204 deletions

View File

@@ -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