shmup:: don't waste all energy at once with flash+energy, also don't shoot at once

This commit is contained in:
Zeno Rogue
2026-07-31 13:47:51 +02:00
parent 12d73a2a36
commit 8bdf304424
+6 -2
View File
@@ -1411,22 +1411,26 @@ void movePlayer(monster *m, int delta) {
if(shotkey && canmove && curtime >= m->nextshot && !stunned) {
bool newshotkey = act[pcFire].pressed() || act[pcFaceFire].pressed();
visibleFor(500);
if(items[itOrbFlash]) {
if(items[itOrbFlash] && newshotkey) {
pushmonsters();
killMonster(m->base, moNone);
cwt.at = m->base;
activateFlash();
popmonsters();
m->nextshot = curtime + 100;
return;
}
if(items[itOrbLightning]) {
if(items[itOrbLightning] && newshotkey) {
pushmonsters();
killMonster(m->base, moLightningBolt);
cwt.at = m->base;
activateLightning();
popmonsters();
m->nextshot = curtime + 100;
return;
}