Skip to content

Commit

Permalink
Фикс
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Oct 12, 2024
1 parent c5d5908 commit 97df910
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
. = ..()
AddComponent(/datum/component/organ_decay, decay_rate, decay_recovery)
AddComponent(/datum/component/organ_toxin_damage, organ_process_toxins)
AddComponent(/datum/component/chemistry_organ, chemical_id)

/obj/item/organ/internal/ears/serpentid/on_life()
.=..()
if(prob(((max_damage - damage)/max_damage) * 100) && chemical_consuption > owner.get_chemical_value(chemical_id))
sense_creatures()
if(chemical_consuption <= owner.get_chemical_value(chemical_id))
if(prob(((max_damage - damage)/max_damage) * 100))
sense_creatures()

/obj/item/organ/internal/ears/serpentid/proc/sense_creatures()
for(var/mob/living/creature in range(9, owner))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
. = ..()
AddComponent(/datum/component/organ_decay, decay_rate, decay_recovery)
AddComponent(/datum/component/organ_toxin_damage, organ_process_toxins)
AddComponent(/datum/component/chemistry_organ, chemical_id)

//Прок на получение цвета глаз
/obj/item/organ/internal/eyes/serpentid/generate_icon(mob/living/carbon/human/HA)
Expand Down Expand Up @@ -54,7 +55,7 @@
.=..()
if(!force_off && owner.get_chemical_value(chemical_id) >= chemical_consuption && !(status & ORGAN_DEAD))
see_in_dark = 8
chemical_consuption = chemical_consuption + chemical_consuption * (max_damage - damage / max_damage)
chemical_consuption = GAS_ORGAN_CHEMISTRY_EYES + GAS_ORGAN_CHEMISTRY_EYES * (max_damage - damage / max_damage)
else
see_in_dark = 0
chemical_consuption = 0

0 comments on commit 97df910

Please sign in to comment.