mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Fixes overloading and deconstructing of the master RND server not affecting research rate (#73569)
## About The Pull Request Only a traitor removing the HDD would affect the income modifier of the stored research web. Updated it so `on_deconstruction` with an HDD present or a ninja overloading with an HDD preset will also negatively affect the income modifier. ## Why It's Good For The Game Fixes #73338 Round impact! ## Changelog 🆑 Melbert fix: Deconstructing (or overloading) the Master RND server with an HDD preset will correctly half research rate /🆑
This commit is contained in:
@@ -124,9 +124,7 @@
|
||||
add_overlay("RD-server-objective-stripes")
|
||||
|
||||
/obj/machinery/rnd/server/master/Destroy()
|
||||
if (source_code_hdd && (deconstruction_state == HDD_OVERLOADED))
|
||||
QDEL_NULL(source_code_hdd)
|
||||
|
||||
QDEL_NULL(source_code_hdd)
|
||||
return ..()
|
||||
|
||||
/obj/machinery/rnd/server/master/get_status_text()
|
||||
@@ -228,6 +226,8 @@
|
||||
/obj/machinery/rnd/server/master/on_deconstruction()
|
||||
// If the machine contains a source code HDD, destroying it will negatively impact research speed. Safest to log this.
|
||||
if(source_code_hdd)
|
||||
// Destroyed with a hard drive inside = harm income
|
||||
stored_research.income_modifier *= 0.5
|
||||
// If there's a usr, this was likely a direct deconstruction of some sort. Extra logging info!
|
||||
if(usr)
|
||||
var/mob/user = usr
|
||||
@@ -245,6 +245,8 @@
|
||||
/obj/machinery/rnd/server/master/proc/overload_source_code_hdd()
|
||||
if(source_code_hdd)
|
||||
QDEL_NULL(source_code_hdd)
|
||||
// Overloaded = harm income
|
||||
stored_research.income_modifier *= 0.5
|
||||
|
||||
if(deconstruction_state == HDD_PANEL_CLOSED)
|
||||
add_overlay("RD-server-hdd-panel-open")
|
||||
|
||||
Reference in New Issue
Block a user