case ACT_HERO:
{
- (void)heroism(25);
+ (void)heroism(p_ptr, 25);
break;
}
case ACT_HERO_SPEED:
{
(void)set_fast(user_ptr, randint1(50) + 50, FALSE);
- (void)heroism(50);
+ (void)heroism(p_ptr, 50);
break;
}
break;
case SV_POTION_HEROISM:
- ident = heroism(25);
+ ident = heroism(p_ptr, 25);
break;
case SV_POTION_BESERK_STRENGTH:
if (cast)
{
- (void)heroism(base);
+ (void)heroism(p_ptr, base);
}
}
break;
if (cast)
{
- (void)heroism(base);
+ (void)heroism(p_ptr, base);
}
}
break;
{
int base = 25;
if (info) return info_duration(base, base);
- if (cast)heroism(base);
+ if (cast)heroism(p_ptr, base);
}
break;
return TRUE;
}
-bool_hack heroism(int base)
+bool_hack heroism(player_type *creature_ptr, int base)
{
bool_hack ident = FALSE;
- if (set_afraid(p_ptr, 0)) ident = TRUE;
- if (set_hero(p_ptr, p_ptr->hero + randint1(base) + base, FALSE)) ident = TRUE;
- if (hp_player(p_ptr, 10)) ident = TRUE;
+ if (set_afraid(creature_ptr, 0)) ident = TRUE;
+ if (set_hero(creature_ptr, creature_ptr->hero + randint1(base) + base, FALSE)) ident = TRUE;
+ if (hp_player(creature_ptr, 10)) ident = TRUE;
return ident;
}
extern bool time_walk(player_type *creature_ptr);
extern void roll_hitdice(player_type *creature_ptr, SPOP_FLAGS options);
extern bool_hack life_stream(player_type *creature_ptr, bool_hack message, bool_hack virtue_change);
-extern bool_hack heroism(int base);
+extern bool_hack heroism(player_type *creature_ptr, int base);
extern bool_hack berserk(int base);
extern bool_hack cure_light_wounds(DICE_NUMBER dice, DICE_SID sides);
extern bool_hack cure_serious_wounds(DICE_NUMBER dice, DICE_SID sides);