Fixes tesla coil hell contraptions (#52889)

Removes the ability for tesla coils to generate power with more then 85% efficiency.
Cleans up the remainder of my zap_act refactor, making the proc better fit its usecase and removing some unneeded code.
Adds a check in the tesla coil zap() proc that makes sure we're not trying to use power that's not there.
Removes some seemingly complex math from said proc, replaces it with a static 20% draw * the efficiency.
This commit is contained in:
LemonInTheDark
2020-08-13 11:32:27 -03:00
committed by GitHub
parent 7586d20c23
commit f66dc66ae5
16 changed files with 47 additions and 50 deletions
+1 -1
View File
@@ -419,7 +419,7 @@
if(client)
R.updatename(client)
if(mind) //TODO
if(mind) //TODO //TODO WHAT
if(!transfer_after)
mind.active = FALSE
mind.transfer_to(R)