mirror of
https://codeberg.org/noisytoot/notnotdnethack.git
synced 2025-05-05 06:45:10 +01:00
Add midas potion to gild a dipped item and give croesus a couple.
This commit is contained in:
parent
57121763e5
commit
ee0ccdf063
3 changed files with 41 additions and 0 deletions
|
@ -1333,6 +1333,8 @@ boolean greatequip;
|
|||
set_material_gm(otmp, GOLD);
|
||||
fix_object(otmp);
|
||||
(void) mpickobj(mtmp,otmp);
|
||||
(void)mongets(mtmp, POT_MIDAS, mkobjflags);
|
||||
(void)mongets(mtmp, POT_MIDAS, mkobjflags);
|
||||
} else if(ptr->mtyp == PM_DOOM_KNIGHT) {
|
||||
otmp = mongets(mtmp, ARMORED_BOOTS, mkobjflags);
|
||||
if(otmp) otmp->obj_color = CLR_GRAY;
|
||||
|
|
|
@ -1571,6 +1571,7 @@ POTION(("goat's milk", "black"), 1, 0, 900, CLR_BLACK),
|
|||
POTION(("primordial waters", "clear"), 1, 0, 900, CLR_CYAN),
|
||||
POTION(("space mead", "golden"), 1, 0, 900, CLR_YELLOW),
|
||||
POTION(("starlight", "dimly-shining"), 1, 4, 250, CLR_BRIGHT_CYAN),
|
||||
POTION(("midas", "aureate"), 1, 0, 900, CLR_YELLOW),
|
||||
POTION(("water", "clear"), 0, 80, 100, CLR_CYAN),
|
||||
POTION(("blood", "blood-red"), 0, 18, 50, CLR_RED, O_USKWN(1)), /* each potion of blood must be ID-ed */
|
||||
#undef POTION
|
||||
|
|
38
src/potion.c
38
src/potion.c
|
@ -1380,6 +1380,18 @@ as_extra_healing:
|
|||
else
|
||||
pline("Magical energies course through your body.");
|
||||
}break;
|
||||
case POT_MIDAS:
|
||||
if (!Golded && !(Stone_resistance && youracedata->mtyp != PM_STONE_GOLEM)
|
||||
&& !is_gold(youracedata)
|
||||
&& !(poly_when_golded(youracedata) && polymon(PM_GOLD_GOLEM))
|
||||
) {
|
||||
Golded = 9;
|
||||
delayed_killer = "the draught of Midas";
|
||||
killer_format = KILLED_BY;
|
||||
You("are turning to gold!");
|
||||
} else
|
||||
You_feel("shiny inside.");
|
||||
break;
|
||||
case POT_POLYMORPH:
|
||||
You_feel("a little %s.", Hallucination ? "normal" : "strange");
|
||||
if (!Unchanging) polyself(FALSE);
|
||||
|
@ -1625,6 +1637,18 @@ boolean your_fault;
|
|||
rn2(10 - (uarmh->cursed? 8 : 0)))
|
||||
get_wet(uarmh, TRUE);
|
||||
break;
|
||||
case POT_MIDAS:
|
||||
if (!Golded && !(Stone_resistance && youracedata->mtyp != PM_STONE_GOLEM)
|
||||
&& !is_gold(youracedata)
|
||||
&& !(poly_when_golded(youracedata) && polymon(PM_GOLD_GOLEM))
|
||||
) {
|
||||
Golded = 9;
|
||||
delayed_killer = "the draught of Midas";
|
||||
killer_format = KILLED_BY;
|
||||
You("are turning to gold!");
|
||||
} else
|
||||
You_feel("shiny inside.");
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
boolean angermon = TRUE;
|
||||
|
@ -1955,6 +1979,11 @@ boolean your_fault;
|
|||
case POT_POLYMORPH:
|
||||
(void) bhitm(mon, obj);
|
||||
break;
|
||||
case POT_MIDAS:
|
||||
if (!resists_ston(mon) && !is_gold(mon->data)) {
|
||||
minstagoldify(mon, TRUE);
|
||||
}
|
||||
break;
|
||||
/*
|
||||
case POT_GAIN_LEVEL:
|
||||
case POT_LEVITATION:
|
||||
|
@ -2134,6 +2163,10 @@ register struct obj *obj;
|
|||
case POT_POLYMORPH:
|
||||
exercise(A_CON, FALSE);
|
||||
break;
|
||||
case POT_MIDAS:
|
||||
You("taste gold flakes.");
|
||||
exercise(A_CON, FALSE);
|
||||
break;
|
||||
case POT_BLOOD:
|
||||
if (is_vampire(youracedata)) {
|
||||
exercise(A_WIS, FALSE);
|
||||
|
@ -3014,6 +3047,11 @@ dodip()
|
|||
goto poof;
|
||||
}
|
||||
#endif
|
||||
if(potion->otyp == POT_MIDAS && obj->obj_material != GOLD){
|
||||
pline("%s %s into gold.", The(xname(obj)), obj->quan != 1 ? "turn" : "turns");
|
||||
set_material(obj, GOLD);
|
||||
goto poof;
|
||||
}
|
||||
|
||||
if( (potion->otyp == POT_ACID ||
|
||||
(potion->otyp == POT_BLOOD && acidic(&mons[potion->corpsenm])))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue