mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-28 04:17:39 +00:00
charge help, and fixed a bug in help in weird geometry warped cells
This commit is contained in:
@@ -192,9 +192,11 @@ EX namespace elec {
|
||||
EX bool havecharge, haveelec, havethunder;
|
||||
EX bool afterOrb; // extra charge from the Orb of Lightning
|
||||
|
||||
#if HDR
|
||||
enum eCharge {
|
||||
ecCharged, ecGrounded, ecIsolator, ecConductor
|
||||
};
|
||||
#endif
|
||||
|
||||
bool conduct(eCharge cf, eCharge ct) {
|
||||
if(ct == ecIsolator) return false;
|
||||
@@ -202,7 +204,7 @@ EX namespace elec {
|
||||
return ct != cf;
|
||||
}
|
||||
|
||||
eCharge getCharge(cell *c) {
|
||||
EX eCharge getCharge(cell *c) {
|
||||
bool ao = afterOrb && c->ligon;
|
||||
|
||||
/* not yet generated */
|
||||
|
||||
Reference in New Issue
Block a user