mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user