Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Commit

Permalink
Убираем ненужный код
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantornRU committed Jul 17, 2023
1 parent 699db78 commit c8c4608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
13 changes: 2 additions & 11 deletions code/modules/food_and_drinks/food_mutate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,7 @@
if(!can_mutate)
return FALSE

var/list/mutation_reagents = list("mutagen", "mutadone", "neurotoxin", "omnizine", "????") //+ GLOB.rare_medicines.Copy() + GLOB.rare_chemicals.Copy() + GLOB.liver_toxins.Copy()
var/mutation_chance_holder = mutation_chance
for(var/r in reagents.reagent_list)
var/datum/reagent/reagent = r
for(var/mut in mutation_reagents)
if(reagent.id == mut)
mutation_chance_holder += reagent.volume

if(prob(mutation_chance_holder))
if(prob(mutation_chance))
mutate()
return TRUE

Expand All @@ -20,5 +12,4 @@
playsound(src, 'sound/effects/meatslap.ogg', 100, 1)
visible_message("<span class='alert'>[src.name] мутировал!</span>")

var/obj/O = src
new /mob/living/simple_animal/hostile/mimic/copy(O.loc, O)
new /mob/living/simple_animal/hostile/mimic/copy(loc, O)
5 changes: 1 addition & 4 deletions code/modules/mob/living/simple_animal/hostile/mimic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ GLOBAL_LIST_INIT(protected_objects, list(/obj/structure/table, /obj/structure/ca

/mob/living/simple_animal/hostile/mimic/copy/New(loc, obj/copy, mob/living/creator, destroy_original = 0)
..(loc)
if(istype(copy, /obj/item/reagent_containers/food))
playsound(copy, 'sound/effects/meatslap.ogg', 100, 1)
CopyObject(copy, creator, destroy_original)

/mob/living/simple_animal/hostile/mimic/copy/Life()
Expand Down Expand Up @@ -156,8 +154,7 @@ GLOBAL_LIST_INIT(protected_objects, list(/obj/structure/table, /obj/structure/ca
icon_state = O.icon_state
icon_living = icon_state
overlays = O.overlays
var/eyes_num = rand(1, 20)
googly_eyes = image('icons/mob/mob_eyes.dmi',"eyes[eyes_num]")
googly_eyes = image('icons/mob/mob_eyes.dmi',"eyes[rand(1, 20)]")
overlays += googly_eyes
if(istype(O, /obj/structure) || istype(O, /obj/machinery))
health = (anchored * 50) + 50
Expand Down

0 comments on commit c8c4608

Please sign in to comment.