Sideports a couple of init unit tests from Neb. (#7893)

* Sideports a couple of init unit tests from Neb.

* Trying to unfuck initialize logic.

* Removing del()s.

* Adjusting return values to Initialize().

* Moving some dangerous object logic from obj onto the two types that use it.

* Rolling back some init changes and commenting out initialized atom unit test.

* this comment formatting is a minor war crime

* Removed sleep() from signaler circuit Initialize().

* Additional Init fixes post-rebase.

* Uncomments subsystem test since that's passing.
This commit is contained in:
MistakeNot4892
2021-02-22 08:03:34 +11:00
committed by GitHub
parent 66b0338be2
commit b22a0568a3
132 changed files with 287 additions and 272 deletions

View File

@@ -31,10 +31,8 @@
var/last_activate = null
/obj/item/organ/internal/augment/Initialize()
..()
. ..()
setup_radial_icon()
if(integrated_object_type)
integrated_object = new integrated_object_type(src)
integrated_object.canremove = FALSE

View File

@@ -189,7 +189,7 @@
)
/obj/item/organ/internal/augment/armmounted/shoulder/multiple/Initialize()
..()
. = ..()
if(integrated_object)
integrated_tools[integrated_object_type] = integrated_object

View File

@@ -73,7 +73,7 @@
spleen_efficiency = 0.5
/obj/item/organ/internal/spleen/skrell/Initialize()
..()
. = ..()
adjust_scale(0.8,0.7)
/obj/item/organ/internal/spleen/minor
@@ -83,5 +83,5 @@
spleen_tick = 15
/obj/item/organ/internal/spleen/minor/Initialize()
..()
. = ..()
adjust_scale(0.7)

View File

@@ -12,8 +12,7 @@
var/deadly_hold = TRUE // Does the stomach do damage to mobs eaten by its owner? Xenos should probably have this FALSE.
/obj/item/organ/internal/stomach/Initialize()
..()
. = ..()
if(reagents)
reagents.maximum_volume = 30
else