Adds CI to forbid some istype(src) checks. (#26980)

* first set of changes

* the last checks

* actually builds

* Update code/modules/surgery/organs/subtypes/standard_organs.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* Update tools/ci/check_grep2.py

Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* 1 fix (cigarettes) and better encapsulation in files

* yeeep

---------

Signed-off-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Contrabang
2024-11-06 12:56:36 +00:00
committed by GitHub
co-authored by Luc
parent 5ac9a04796
commit 0f717d660a
33 changed files with 178 additions and 149 deletions
@@ -601,8 +601,6 @@ Note that amputating the affected organ does in fact remove the infection from t
if(!disintegrate)
disintegrate = DROPLIMB_SHARP
if(disintegrate == DROPLIMB_BURN && istype(src, /obj/item/organ/external/head))
disintegrate = DROPLIMB_SHARP //Lets not make sharp burn weapons delete brains.
switch(disintegrate)
if(DROPLIMB_SHARP)
@@ -264,6 +264,10 @@
/obj/item/organ/external/head/vars_to_save()
return list("color", "name", "h_grad_style", "h_grad_offset_x", "h_grad_offset_y", "h_grad_colour", "h_grad_alpha")
/obj/item/organ/external/head/droplimb(clean, disintegrate, ignore_children, nodamage)
disintegrate = DROPLIMB_SHARP // Lets make sure to not delete brains
return ..(clean, disintegrate, ignore_children, nodamage)
/obj/item/organ/external/head/remove()
if(owner)
if(!istype(dna))