1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-05-13 19:15:05 +01:00

Shiro crash fix

This commit is contained in:
Chris-plus-alphanumericgibberish 2014-07-08 23:25:29 -04:00
parent 2b6be8361b
commit c268723256
2 changed files with 8 additions and 8 deletions

View file

@ -197,6 +197,14 @@ moveloop()
if(u.sealsActive&SEAL_ORTHOS && !(viz_array[u.uy][u.ux]&TEMP_LIT || levl[u.ux][u.uy].lit)) unbind(SEAL_ORTHOS,TRUE);
if(u.sealsActive&SEAL_NABERIUS && u.udrunken<u.ulevel) unbind(SEAL_NABERIUS,TRUE);
if(u.specialSealsActive&SEAL_NUMINA && u.ulevel<30) unbind(SEAL_SPECIAL|SEAL_NUMINA,TRUE);
if(u.sealsActive&SEAL_SHIRO && uarmc && uarmc->otyp == MUMMY_WRAPPING){
struct obj *otmp = uarmc;
pline("Hey, people might notice me with that!");
if (donning(otmp)) cancel_don();
(void) Cloak_off();
useup(otmp);
unbind(SEAL_SHIRO,TRUE);
}
////////////////////////////////////////////////////////////////////////////////////////////////
//These artifacts may need to respond to what monsters have done.
///If the player no longer meets the kusanagi's requirements (ie, they lost the amulet)

View file

@ -253,14 +253,6 @@ Cloak_on()
/* racial armor bonus */
if(arti_lighten(uarmc)) inv_weight();
if(u.sealsActive&SEAL_SHIRO){
struct obj *otmp = uarmc;
pline("Hey, people might notice me with that!");
if (donning(otmp)) cancel_don();
(void) Cloak_off();
useup(otmp);
unbind(SEAL_SHIRO,TRUE);
}
return 0;
}