Changes ERUPT to cause fear instead of bleeding

This commit is contained in:
Linus Probert 2019-05-14 16:10:28 +02:00
parent 8fb1bbcc1e
commit 046551ad6d
1 changed files with 10 additions and 8 deletions

View File

@ -198,7 +198,8 @@ static char *erupt_tooltip[] = {
"ERUPT", "",
"",
" You erupt in a magical explosion damaging monsters", "",
" around you pushing them back and causing bleeding.", "",
" around you pushing them back and causing fear", "",
" for 3 turns.", "",
"",
"COOLDOWN:", "",
" 3 turns", "",
@ -972,19 +973,20 @@ skill_erupt(Skill *skill, SkillData *data)
player->stats.advantage = false;
monster_hit(r->monster, result.dmg, result.critical);
gui_log("%s takes %d damage from the explosion", r->monster->label, result.dmg);
monster_set_bleeding(r->monster);
monster_set_state(r->monster, SCARED, 3);
int lvl = 2;//player_has_artifact(player, PUSH_BACK);
Vector2d dir = vector2d_to_direction(&VEC2D((float) i, (float) j));
for (int k = 0; k < lvl; ++k) {
monster_push(r->monster,
player,
rm,
VEC2D(dir.x * (float) lvl,
dir.y * (float) lvl)
dir
);
}
}
}
}
return true;
}