-potions file
This commit is contained in:
@@ -78,16 +78,6 @@ quaff(struct rogue_state *rs)
|
|||||||
}
|
}
|
||||||
if (obj == cur_weapon)
|
if (obj == cur_weapon)
|
||||||
cur_weapon = NULL;
|
cur_weapon = NULL;
|
||||||
static FILE *fp;
|
|
||||||
{
|
|
||||||
if ( fp == 0 )
|
|
||||||
fp = fopen("potions","wb");
|
|
||||||
if ( fp != 0 )
|
|
||||||
{
|
|
||||||
fprintf(fp,"potion.%d seed.%llu\n",obj->o_which,(long long)seed);
|
|
||||||
fflush(fp);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* Calculate the effect it has on the poor guy.
|
* Calculate the effect it has on the poor guy.
|
||||||
*/
|
*/
|
||||||
@@ -108,11 +98,6 @@ quaff(struct rogue_state *rs)
|
|||||||
msg(rs,"you feel very sick now");
|
msg(rs,"you feel very sick now");
|
||||||
come_down(rs,0);
|
come_down(rs,0);
|
||||||
}
|
}
|
||||||
if ( fp != 0 )
|
|
||||||
{
|
|
||||||
fprintf(fp,"poison iswearing.%d left.%d right.%d seed.%llu\n",ISWEARING(R_SUSTSTR),ISRING(LEFT, R_SUSTSTR),ISRING(RIGHT, R_SUSTSTR),(long long)seed);
|
|
||||||
fflush(fp);
|
|
||||||
}
|
|
||||||
when P_HEALING:
|
when P_HEALING:
|
||||||
pot_info[P_HEALING].oi_know = TRUE;
|
pot_info[P_HEALING].oi_know = TRUE;
|
||||||
if ((pstats.s_hpt += roll(pstats.s_lvl, 4)) > max_hp)
|
if ((pstats.s_hpt += roll(pstats.s_lvl, 4)) > max_hp)
|
||||||
@@ -235,11 +220,6 @@ quaff(struct rogue_state *rs)
|
|||||||
|
|
||||||
if (discardit)
|
if (discardit)
|
||||||
discard(obj);
|
discard(obj);
|
||||||
if ( fp != 0 )
|
|
||||||
{
|
|
||||||
fprintf(fp,"end potion.%d seed.%llu\n",obj->o_which,(long long)seed);
|
|
||||||
fflush(fp);
|
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user