mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-17 14:17:10 +00:00
lightning bolts are no longer generated forever
This commit is contained in:
2
orbs.cpp
2
orbs.cpp
@@ -346,7 +346,9 @@ void killAdjacentSharks(cell *c) {
|
|||||||
|
|
||||||
void castLightningBolt(cellwalker lig) {
|
void castLightningBolt(cellwalker lig) {
|
||||||
int bnc = 0;
|
int bnc = 0;
|
||||||
|
int counter = 1000;
|
||||||
while(true) {
|
while(true) {
|
||||||
|
counter--; if(counter < 0) break;
|
||||||
// printf("at: %p i=%d d=%d\n", lig.c, i, lig.spin);
|
// printf("at: %p i=%d d=%d\n", lig.c, i, lig.spin);
|
||||||
|
|
||||||
killAdjacentSharks(lig.c);
|
killAdjacentSharks(lig.c);
|
||||||
|
|||||||
Reference in New Issue
Block a user