remove unbombable enemies
This commit is contained in:
parent
4f53f8fae9
commit
9948ec95cc
4 changed files with 1 additions and 8 deletions
|
@ -26,7 +26,6 @@ Enemy *create_enemy_p(Enemy **enemies, complex pos, int hp, EnemyDrawRule draw_r
|
|||
|
||||
e->hp = hp;
|
||||
e->alpha = 1.0;
|
||||
e->unbombable = false;
|
||||
|
||||
e->logic_rule = logic_rule;
|
||||
e->draw_rule = draw_rule;
|
||||
|
|
|
@ -36,7 +36,6 @@ struct Enemy {
|
|||
EnemyDrawRule draw_rule;
|
||||
|
||||
int hp;
|
||||
bool unbombable;
|
||||
|
||||
complex args[RULE_ARGC];
|
||||
float alpha;
|
||||
|
|
|
@ -192,7 +192,7 @@ void player_logic(Player* plr) {
|
|||
if(global.frames - plr->recovery < 0) {
|
||||
Enemy *en;
|
||||
for(en = global.enemies; en; en = en->next)
|
||||
if(!en->unbombable && en->hp > ENEMY_IMMUNE)
|
||||
if(en->hp > ENEMY_IMMUNE)
|
||||
en->hp -= 300;
|
||||
|
||||
if(global.boss) {
|
||||
|
|
|
@ -81,7 +81,6 @@ int stage3_slavefairy(Enemy *e, int t) {
|
|||
|
||||
AT(EVENT_BIRTH) {
|
||||
e->alpha = 0;
|
||||
e->unbombable = true;
|
||||
}
|
||||
|
||||
if(t < 120)
|
||||
|
@ -119,7 +118,6 @@ int stage3_slavefairy2(Enemy *e, int t) {
|
|||
|
||||
AT(EVENT_BIRTH) {
|
||||
e->alpha = 0;
|
||||
e->unbombable = true;
|
||||
}
|
||||
|
||||
int lifetime = 100+20*global.diff;
|
||||
|
@ -152,7 +150,6 @@ int stage3_bigfairy(Enemy *e, int t) {
|
|||
|
||||
AT(EVENT_BIRTH) {
|
||||
e->alpha = 0;
|
||||
e->unbombable = true;
|
||||
}
|
||||
|
||||
EnemyLogicRule slave = cimag(e->args[0]) ? stage3_slavefairy2 : stage3_slavefairy;
|
||||
|
@ -177,7 +174,6 @@ int stage3_bitchswirl(Enemy *e, int t) {
|
|||
TIMER(&t)
|
||||
|
||||
AT(EVENT_BIRTH) {
|
||||
e->unbombable = true;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -208,7 +204,6 @@ int stage3_cornerfairy(Enemy *e, int t) {
|
|||
|
||||
AT(EVENT_BIRTH) {
|
||||
e->alpha = 0;
|
||||
e->unbombable = true;
|
||||
}
|
||||
|
||||
FROM_TO(0, 120, 1)
|
||||
|
|
Loading…
Reference in a new issue