mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +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:
@@ -41,4 +41,5 @@
|
||||
/obj/item/stock_parts/cell/lead/Initialize(mapload)
|
||||
AddElement(/datum/element/update_icon_blocker)
|
||||
. = ..()
|
||||
charge = rand(0.2,0.8) * maxcharge
|
||||
var/initial_percent = rand(20, 80) / 100
|
||||
charge = initial_percent * maxcharge
|
||||
|
||||
Reference in New Issue
Block a user