Changes ERUPT to cause fear instead of bleeding
This commit is contained in:
parent
8fb1bbcc1e
commit
046551ad6d
18
src/skill.c
18
src/skill.c
|
@ -198,7 +198,8 @@ static char *erupt_tooltip[] = {
|
||||||
"ERUPT", "",
|
"ERUPT", "",
|
||||||
"",
|
"",
|
||||||
" You erupt in a magical explosion damaging monsters", "",
|
" 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:", "",
|
"COOLDOWN:", "",
|
||||||
" 3 turns", "",
|
" 3 turns", "",
|
||||||
|
@ -972,16 +973,17 @@ skill_erupt(Skill *skill, SkillData *data)
|
||||||
player->stats.advantage = false;
|
player->stats.advantage = false;
|
||||||
monster_hit(r->monster, result.dmg, result.critical);
|
monster_hit(r->monster, result.dmg, result.critical);
|
||||||
gui_log("%s takes %d damage from the explosion", r->monster->label, result.dmg);
|
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);
|
int lvl = 2;//player_has_artifact(player, PUSH_BACK);
|
||||||
Vector2d dir = vector2d_to_direction(&VEC2D((float) i, (float) j));
|
Vector2d dir = vector2d_to_direction(&VEC2D((float) i, (float) j));
|
||||||
monster_push(r->monster,
|
for (int k = 0; k < lvl; ++k) {
|
||||||
player,
|
monster_push(r->monster,
|
||||||
rm,
|
player,
|
||||||
VEC2D(dir.x * (float) lvl,
|
rm,
|
||||||
dir.y * (float) lvl)
|
dir
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue