forked from github/server
- Peace-Curse im mapper setzbar
This commit is contained in:
parent
6ef723f412
commit
afbd3a9062
|
@ -144,7 +144,7 @@ SpecialFunction(region *r)
|
|||
|
||||
win = openwin(60, 5, "< Specials Regions >");
|
||||
wmove(win, 1, 2);
|
||||
wAddstr("1 - set Godcurse");
|
||||
wAddstr("1 - set Godcurse (n.imm), 2 - set Peace-Curse (imm)");
|
||||
wmove(win, 2, 2);
|
||||
wrefresh(win);
|
||||
switch(getch()) {
|
||||
|
@ -156,6 +156,12 @@ SpecialFunction(region *r)
|
|||
modified = 1;
|
||||
break;
|
||||
}
|
||||
case '2':
|
||||
if(!is_cursed_internal(r->attribs, C_PEACE, 0)) {
|
||||
create_curse(NULL, &r->attribs, C_PEACE, 0, 100, 1, 0, 0);
|
||||
set_curseflag(r->attribs, C_PEACE, 0, CURSE_IMMUN);
|
||||
modified = 1;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue