diff options
| author | Selene ToyKeeper | 2018-06-30 16:50:55 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-06-30 16:50:55 -0600 |
| commit | ddaa3eb594a8dc6656529306ccdf9f9a240a3588 (patch) | |
| tree | a2f74388205b30c4184606dfc72001ba56c19c82 | |
| parent | Oops, not sure how it even compiled with this typo. (diff) | |
| download | anduril-ddaa3eb594a8dc6656529306ccdf9f9a240a3588.tar.gz anduril-ddaa3eb594a8dc6656529306ccdf9f9a240a3588.tar.bz2 anduril-ddaa3eb594a8dc6656529306ccdf9f9a240a3588.zip | |
Just in case, overheating in muggle mode triggers an immediate drop to the floor.
Because WTF. This basically can't happen unless someone is doing something very stupid.
| -rw-r--r-- | spaghetti-monster/anduril/anduril.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index f2d02ee..e79d568 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -1219,6 +1219,18 @@ uint8_t muggle_state(EventPtr event, uint16_t arg) { } return MISCHIEF_MANAGED; } + #ifdef USE_THERMAL_REGULATION + // overheating is handled specially in muggle mode + else if(event == EV_temperature_high) { + // don't even try... + // go immediately to the bottom, in case someone put the light on + // maximum while wrapped in dark-colored flammable insulation + // or something, because muggles are cool like that + // memorized_level = MUGGLE_FLOOR; // override memory? maybe not + set_level(MUGGLE_FLOOR); + return MISCHIEF_MANAGED; + } + #endif // low voltage is handled specially in muggle mode else if(event == EV_voltage_low) { uint8_t lvl = (actual_level >> 1) + (actual_level >> 2); |
