added flee moves for stage 1 and 2 midbosses
This commit is contained in:
parent
eae2ac6d2d
commit
29a0f3512e
2 changed files with 14 additions and 0 deletions
|
@ -133,11 +133,18 @@ void cirno_pfreeze_bg(Boss *c, int time) {
|
|||
glColor4f(1,1,1,1);
|
||||
}
|
||||
|
||||
void cirno_mid_flee(Boss *c, int time) {
|
||||
if(time >= 0) {
|
||||
GO_TO(c, -250 + 30 * I, 0.02)
|
||||
}
|
||||
}
|
||||
|
||||
Boss *create_cirno_mid(void) {
|
||||
Boss* cirno = create_boss("Cirno", "cirno", "dialog/cirno", VIEWPORT_W + 220 + 30.0*I);
|
||||
boss_add_attack(cirno, AT_Move, "Introduction", 2, 0, cirno_intro, NULL);
|
||||
boss_add_attack(cirno, AT_Normal, "Icy Storm", 20, 20000, cirno_icy, NULL);
|
||||
boss_add_attack_from_info(cirno, stage1_spells+0, false);
|
||||
boss_add_attack(cirno, AT_Move, "Flee", 5, 0, cirno_mid_flee, NULL);
|
||||
|
||||
start_attack(cirno, cirno->attacks);
|
||||
return cirno;
|
||||
|
|
|
@ -264,10 +264,17 @@ void wriggle_small_storm(Boss *w, int time) {
|
|||
}
|
||||
}
|
||||
|
||||
void wiggle_mid_flee(Boss *w, int t) {
|
||||
if(t >= 0) {
|
||||
GO_TO(w, VIEWPORT_W/2 - 3.0 * t - 300 * I, 0.01)
|
||||
}
|
||||
}
|
||||
|
||||
Boss *create_wriggle_mid(void) {
|
||||
Boss* wriggle = create_boss("Wriggle", "wriggle", "dialog/wriggle", VIEWPORT_W + 150 - 30.0*I);
|
||||
boss_add_attack(wriggle, AT_Move, "Introduction", 4, 0, wriggle_intro, NULL);
|
||||
boss_add_attack(wriggle, AT_Normal, "Small Bug Storm", 20, 20000, wriggle_small_storm, NULL);
|
||||
boss_add_attack(wriggle, AT_Move, "Flee", 5, 0, wiggle_mid_flee, NULL);;
|
||||
|
||||
start_attack(wriggle, wriggle->attacks);
|
||||
return wriggle;
|
||||
|
|
Loading…
Reference in a new issue