mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
[MIRROR] Fixes some incorrect uses of rand() [MDB IGNORE] (#19910)
* Fixes some incorrect uses of `rand()` (#74032) ## About The Pull Request `Rand` only takes integers   ## Why It's Good For The Game Less misleading code ## Changelog 🆑 Melbert fix: Lead batteries now start partially drained as intended. /🆑 * Fixes some incorrect uses of `rand()` --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
burrower.invisibility = INVISIBILITY_MAXIMUM
|
||||
burrower.forceMove(unburrow_turf)
|
||||
//not that it's gonna die with godmode but still
|
||||
SLEEP_CHECK_DEATH(rand(0.75 SECONDS, 1.25 SECONDS), burrower)
|
||||
SLEEP_CHECK_DEATH(rand(0.7 SECONDS, 1.2 SECONDS), burrower)
|
||||
playsound(burrower, 'sound/effects/break_stone.ogg', 50, TRUE)
|
||||
new /obj/effect/temp_visual/mook_dust(unburrow_turf)
|
||||
burrower.status_flags &= ~GODMODE
|
||||
@@ -108,7 +108,7 @@
|
||||
devourer.invisibility = INVISIBILITY_MAXIMUM
|
||||
devourer.forceMove(devour_turf)
|
||||
//not that it's gonna die with godmode but still
|
||||
SLEEP_CHECK_DEATH(rand(0.75 SECONDS, 1.25 SECONDS), devourer)
|
||||
SLEEP_CHECK_DEATH(rand(0.7 SECONDS, 1.2 SECONDS), devourer)
|
||||
playsound(devourer, 'sound/effects/break_stone.ogg', 50, TRUE)
|
||||
new /obj/effect/temp_visual/mook_dust(devour_turf)
|
||||
devourer.status_flags &= ~GODMODE
|
||||
|
||||
Reference in New Issue
Block a user