mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Removes shitty "status" variable on organs, makes them use organ_flags instead (#76350)
## About The Pull Request Title. ## Why It's Good For The Game Seriously this shit pisses me off, why are ORGAN_SYNTHETIC and ORGAN_ROBOTIC two different things? ## Changelog not applicable unless i fucked up --------- Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com>
This commit is contained in:
co-authored by
Time-Green
parent
b090e404dd
commit
82cf9ea499
@@ -327,7 +327,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
|
||||
reagents.expose(smoker, INGEST, min(to_smoke / reagents.total_volume, 1))
|
||||
var/obj/item/organ/internal/lungs/lungs = smoker.get_organ_slot(ORGAN_SLOT_LUNGS)
|
||||
if(lungs && !(lungs.organ_flags & ORGAN_SYNTHETIC))
|
||||
if(lungs && IS_ORGANIC_ORGAN(lungs))
|
||||
var/smoker_resistance = HAS_TRAIT(smoker, TRAIT_SMOKER) ? 0.5 : 1
|
||||
smoker.adjustOrganLoss(ORGAN_SLOT_LUNGS, lung_harm*smoker_resistance)
|
||||
if(!reagents.trans_to(smoker, to_smoke, methods = INGEST, ignore_stomach = TRUE))
|
||||
|
||||
@@ -390,9 +390,9 @@
|
||||
if(iscarbon(target))
|
||||
var/mob/living/carbon/carbontarget = target
|
||||
var/cyberimp_detect
|
||||
for(var/obj/item/organ/internal/cyberimp/CI in carbontarget.organs)
|
||||
if(CI.status == ORGAN_ROBOTIC && !(CI.organ_flags & ORGAN_HIDDEN))
|
||||
cyberimp_detect += "[!cyberimp_detect ? "[CI.get_examine_string(user)]" : ", [CI.get_examine_string(user)]"]"
|
||||
for(var/obj/item/organ/internal/cyberimp/cyberimp in carbontarget.organs)
|
||||
if(IS_ROBOTIC_ORGAN(cyberimp) && !(cyberimp.organ_flags & ORGAN_HIDDEN))
|
||||
cyberimp_detect += "[!cyberimp_detect ? "[cyberimp.get_examine_string(user)]" : ", [cyberimp.get_examine_string(user)]"]"
|
||||
if(cyberimp_detect)
|
||||
render_list += "<span class='notice ml-1'>Detected cybernetic modifications:</span>\n"
|
||||
render_list += "<span class='notice ml-2'>[cyberimp_detect]</span>\n"
|
||||
|
||||
@@ -88,7 +88,7 @@
|
||||
patient.balloon_alert(user, "no [parse_zone(user.zone_selected)]!")
|
||||
return FALSE
|
||||
if(!IS_ORGANIC_LIMB(affecting)) //Limb must be organic to be healed - RR
|
||||
patient.balloon_alert(user, "it's mechanical!")
|
||||
patient.balloon_alert(user, "it's not organic!")
|
||||
return FALSE
|
||||
if(affecting.brute_dam && brute || affecting.burn_dam && burn)
|
||||
user.visible_message(
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
|
||||
var/obj/item/bodypart/affecting = attacked_humanoid.get_bodypart(check_zone(user.zone_selected))
|
||||
|
||||
if(affecting && !IS_ORGANIC_LIMB(affecting) && !user.combat_mode)
|
||||
if(affecting && IS_ROBOTIC_LIMB(affecting) && !user.combat_mode)
|
||||
if(src.use_tool(attacked_humanoid, user, 0, volume=50, amount=1))
|
||||
if(user == attacked_humanoid)
|
||||
user.visible_message(span_notice("[user] starts to fix some of the dents on [attacked_humanoid]'s [affecting.name]."),
|
||||
|
||||
Reference in New Issue
Block a user