Kinesis Module (#64151)

fixes #64029 (Springlock MOD module kills you even when you have Memento Mori necklace)
fixes #64136 (modsuits cant run out of charge)
fixes #64158 (trying to install a battery into a modsuit with free storage space places the battery into storage)
fixes #64186 (ModSuits : taking out cell doesn't give it back)
fixes #64161 (Modsuit cores disappear in construction)
makes mod jetpacks show particles indoors
gives the prototype suit back their upgraded cell (they literally lose 1% of power per 3 seconds with their current one)
Fully reworks the kinesis module to not be TK but lamer, it is now a gravitational anomaly locked module. 

Unique stuff that can be used in fun scenarios
This commit is contained in:
Fikou
2022-01-18 16:30:11 -08:00
committed by GitHub
parent 2d48341d80
commit 505e441495
31 changed files with 602 additions and 348 deletions
+7 -3
View File
@@ -73,13 +73,13 @@
return 100*charge/maxcharge
// use power from a cell
/obj/item/stock_parts/cell/use(amount)
/obj/item/stock_parts/cell/use(amount, force)
if(rigged && amount > 0)
explode()
return FALSE
if(charge < amount)
if(!force && charge < amount)
return FALSE
charge = (charge - amount)
charge = max(charge - amount, 0)
if(!istype(loc, /obj/machinery/power/apc))
SSblackbox.record_feedback("tally", "cell_used", 1, type)
return TRUE
@@ -203,6 +203,10 @@
/obj/item/stock_parts/cell/get_part_rating()
return rating * maxcharge
/obj/item/stock_parts/cell/attackby_storage_insert(datum/component/storage, atom/storage_holder, mob/user)
var/obj/item/mod/control/mod = storage_holder
return !(istype(mod) && mod.open)
/* Cell variants*/
/obj/item/stock_parts/cell/empty/Initialize(mapload)
. = ..()