From: Rick Bird Date: Fri, 25 Mar 2011 21:27:47 +0000 (-0400) Subject: Initial CobraMUSH Adaptation to new PennMUSH attribute code. X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=00a333c466dad38897f417f46ba414335d27c87f;p=cobramush.git Initial CobraMUSH Adaptation to new PennMUSH attribute code. --- diff --git a/src/cmds.c b/src/cmds.c index 36288d3..662a1cc 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -956,7 +956,7 @@ COMMAND (cmd_wait) { int qid; qid = do_wait(player, cause, arg_left, arg_right, SW_ISSET(sw, SWITCH_UNTIL), 0); - atr_add(player, "QID", tprintf("%d", qid), player, NOTHING); + atr_add(player, "QID", tprintf("%d", qid), player, 0); } COMMAND (cmd_wall) { diff --git a/src/division.c b/src/division.c index 5acb970..362cc9f 100644 --- a/src/division.c +++ b/src/division.c @@ -2635,7 +2635,7 @@ void add_to_div_exit_path(dbref player, dbref div_obj) { if(divrcd == NULL) { /* simple one, just add a one liner to this guy */ - atr_add(player, "XYXX_DIVRCD", unparse_number(div_obj), GOD, NOTHING); + atr_add(player, "XYXX_DIVRCD", unparse_number(div_obj), GOD, 0); } else { /* Ok.. First we're gonna have to list2arr to get our boys */ cnt = list2arr(tp_buf, BUFFER_LEN / 2 , (char *) safe_atr_value(divrcd), ' '); @@ -2649,7 +2649,7 @@ void add_to_div_exit_path(dbref player, dbref div_obj) { safe_chr(' ', tbuf, &tbp); safe_str(unparse_number(div_obj), tbuf, &tbp); *tbp = '\0'; - (void) atr_add(player, "XYXX_DIVRCD", tbuf, GOD, NOTHING); + (void) atr_add(player, "XYXX_DIVRCD", tbuf, GOD, 0); } } diff --git a/src/flags.c b/src/flags.c index 4ee9d7c..68f1ad0 100644 --- a/src/flags.c +++ b/src/flags.c @@ -1464,7 +1464,7 @@ set_flag(dbref player, dbref thing, const char *flag, int negate, icloc = GoodObject((absroom = absolute_room(thing))) ? absroom : thing; if(GoodObject(icloc) && has_flag_by_name(icloc, "ICFUNCS" , NOTYPE) && !Going(icloc)) { - (void) atr_add(thing, "INF_RPLOC", unparse_dbref(Location(thing)), GOD, NOTHING); + (void) atr_add(thing, "INF_RPLOC", unparse_dbref(Location(thing)), GOD, 0); icloc = Home(thing); } else { notify(player, "That player is not an IC Location, therefore can't go OOC."); diff --git a/src/player.c b/src/player.c index 8206c07..50aece7 100644 --- a/src/player.c +++ b/src/player.c @@ -436,7 +436,7 @@ make_player(const char *name, const char *password, const char *host, giveto(player, START_BONUS); /* starting bonus */ (void) atr_add(player, "LAST", show_time(mudtime, 0), GOD, 0); (void) atr_add(player, "LASTSITE", host, GOD, 0); - (void) atr_add(player, "LASTIP", ip, GOD, NOTHING); + (void) atr_add(player, "LASTIP", ip, GOD, 0); (void) atr_add(player, "LASTFAILED", " ", GOD, 0); sprintf(temp, "%d", START_QUOTA); (void) atr_add(player, "RQUOTA", temp, GOD, 0); diff --git a/src/prog.c b/src/prog.c index 5c350ef..d6a60c1 100644 --- a/src/prog.c +++ b/src/prog.c @@ -166,7 +166,7 @@ COMMAND(cmd_prog) object_header(Owner(player), player)); tooref = ooref, ooref = NOTHING; - atr_add(target, "XY_PROGPROMPT", t, GOD, NOTHING); + atr_add(target, "XY_PROGPROMPT", t, GOD, 0); ooref = tooref; memset(buf, '\0', BUFFER_LEN); bp = buf; @@ -193,7 +193,7 @@ COMMAND(cmd_prog) *tbp = '\0'; /* Now Save to XY_PROGENV */ - (void) atr_add(target, "XY_PROGENV", tbuf1, GOD, NOTHING); + (void) atr_add(target, "XY_PROGENV", tbuf1, GOD, 0); /* Place them into the actual program */ @@ -301,7 +301,7 @@ FUNCTION(fun_prog) tbp--; *tbp = '\0'; /* Now Save to XY_PROGENV */ - (void) atr_add(target, "XY_PROGENV", tbuf1, GOD, NOTHING); + (void) atr_add(target, "XY_PROGENV", tbuf1, GOD, 0); @@ -387,7 +387,7 @@ COMMAND(cmd_prompt) prompt = arg_right; /* Save the prompt as well */ tooref = ooref, ooref = NOTHING; - atr_add(who, "XY_PROGPROMPT", arg_right, GOD, NOTHING); + atr_add(who, "XY_PROGPROMPT", arg_right, GOD, 0); ooref = tooref; } else prompt = (char *) UNDEFINED_PROMPT; @@ -538,7 +538,7 @@ prog_handler(DESC * d, char *input) bp--; *bp = '\0'; /* Now Save to XY_PROGENV */ - (void) atr_add(d->player, "XY_PROGENV", buf, GOD, NOTHING); + (void) atr_add(d->player, "XY_PROGENV", buf, GOD, 0); return 1; } @@ -723,7 +723,7 @@ prog_place(dbref player, dbref object, ATTR * patr, int lock) if (!(lock & PI_PROMPT)) { atr_clr(player, "XY_PROGPROMPT", GOD); } - (void) atr_add(player, "XY_PROGINFO", str, GOD, NOTHING); + (void) atr_add(player, "XY_PROGINFO", str, GOD, 0); ooref = tooref; DESC_ITER_CONN(d) if (d->player == player) {