mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
[MIRROR] makes some instances of x^y into x**y because thats what exponents are in dm (#6790)
* makes some instances of x^y into x**y because thats what exponents are in dm (#60050) caught by monster at yogstation13/Yogstation#11703 probably not intended, 2^15 = 13 in dm so dont call this proc more than 13 times sequentially i guess I have a suspicion that it doesn't matter assuming it gets caught by tick_usage being different but just in case also fixes two other instances in code shown to me by mso * makes some instances of x^y into x**y because thats what exponents are in dm * Update lighting.dm Co-authored-by: Kylerace <kylerlumpkin1@gmail.com> Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com>
This commit is contained in:
co-authored by
Kylerace
Useroth
parent
d3990a1e95
commit
2a42a55760
@@ -25,7 +25,7 @@
|
||||
if(control && control.occurrences > 0) //Don't refund if it hasn't
|
||||
control.occurrences--
|
||||
return
|
||||
var/waittime = 300 * (2^retry)
|
||||
var/waittime = 300 * (2**retry)
|
||||
message_admins("The event will not spawn a [role_name] until certain \
|
||||
conditions are met. Waiting [waittime/10]s and then retrying.")
|
||||
addtimer(CALLBACK(src, .proc/try_spawning, 0, ++retry), waittime)
|
||||
|
||||
@@ -440,7 +440,7 @@
|
||||
if(rigged)
|
||||
if(status == LIGHT_OK && trigger)
|
||||
explode()
|
||||
else if( prob( min(60, (switchcount^2)*0.01) ) )
|
||||
else if( prob( min(60, (switchcount**2)*0.01) ) )
|
||||
if(trigger)
|
||||
burn_out()
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user