All funcs
This commit is contained in:
@@ -169,6 +169,24 @@ char *actionfunc_str(char *str,void *ptr)
|
|||||||
strcpy(str,"doctor");
|
strcpy(str,"doctor");
|
||||||
else if ( ptr == (void *)stomach )
|
else if ( ptr == (void *)stomach )
|
||||||
strcpy(str,"stomach");
|
strcpy(str,"stomach");
|
||||||
|
else if ( ptr == (void *)nohaste )
|
||||||
|
strcpy(str,"nohaste");
|
||||||
|
else if ( ptr == (void *)unconfuse )
|
||||||
|
strcpy(str,"unconfuse");
|
||||||
|
else if ( ptr == (void *)swander )
|
||||||
|
strcpy(str,"swander");
|
||||||
|
else if ( ptr == (void *)come_down )
|
||||||
|
strcpy(str,"come_down");
|
||||||
|
else if ( ptr == (void *)unsee )
|
||||||
|
strcpy(str,"unsee");
|
||||||
|
else if ( ptr == (void *)sight )
|
||||||
|
strcpy(str,"sight");
|
||||||
|
else if ( ptr == (void *)land )
|
||||||
|
strcpy(str,"land");
|
||||||
|
else if ( ptr == (void *)rollwand )
|
||||||
|
strcpy(str,"rollwand");
|
||||||
|
else if ( ptr == (void *)visuals )
|
||||||
|
strcpy(str,"visuals");
|
||||||
else strcpy(str,"no match");
|
else strcpy(str,"no match");
|
||||||
return(str);
|
return(str);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -377,18 +377,18 @@ do_pot(struct rogue_state *rs,int type, bool knowit)
|
|||||||
{
|
{
|
||||||
PACT *pp;
|
PACT *pp;
|
||||||
int t;
|
int t;
|
||||||
|
|
||||||
pp = &p_actions[type];
|
pp = &p_actions[type];
|
||||||
if (!pot_info[type].oi_know)
|
if (!pot_info[type].oi_know)
|
||||||
pot_info[type].oi_know = knowit;
|
pot_info[type].oi_know = knowit;
|
||||||
t = spread(pp->pa_time);
|
t = spread(pp->pa_time);
|
||||||
if (!on(player, pp->pa_flags))
|
if (!on(player, pp->pa_flags))
|
||||||
{
|
{
|
||||||
player.t_flags |= pp->pa_flags;
|
player.t_flags |= pp->pa_flags;
|
||||||
fuse(pp->pa_daemon, 0, t, AFTER);
|
fuse(pp->pa_daemon, 0, t, AFTER);
|
||||||
look(rs,FALSE);
|
look(rs,FALSE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
lengthen(pp->pa_daemon, t);
|
lengthen(pp->pa_daemon, t);
|
||||||
msg(rs,choose_str(pp->pa_high, pp->pa_straight));
|
msg(rs,choose_str(pp->pa_high, pp->pa_straight));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user