mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 05:09:49 +01:00
b594520a74
* next set of spans * some more * next * next * next * . * text... * next... rest soon * . * . * ok last set for the night * . * . * . * . * some more * next * next * all for now * . * some more easy ones * some more easy ones * . * . * some more bolds * oups auto complete moment * add the remaining spans * this as well * this as well * . * ., * resync them properly
46 lines
1.9 KiB
Plaintext
46 lines
1.9 KiB
Plaintext
/obj/item/slime_scanner
|
|
name = "slime scanner"
|
|
icon = 'icons/obj/device.dmi'
|
|
icon_state = "xenobio"
|
|
item_state = "xenobio"
|
|
origin_tech = list(TECH_BIO = 1)
|
|
w_class = ITEMSIZE_SMALL
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
matter = list(MAT_STEEL = 30,MAT_GLASS = 20)
|
|
pickup_sound = 'sound/items/pickup/device.ogg'
|
|
drop_sound = 'sound/items/drop/device.ogg'
|
|
|
|
/obj/item/slime_scanner/attack(mob/living/M as mob, mob/living/user as mob)
|
|
if(!istype(M, /mob/living/simple_mob/slime/xenobio))
|
|
to_chat(user, span_infoplain(span_bold("This device can only scan lab-grown slimes!")))
|
|
return
|
|
var/mob/living/simple_mob/slime/xenobio/S = M
|
|
user.show_message("Slime scan results:<br>[S.slime_color] [S.is_adult ? "adult" : "baby"] slime<br>Health: [S.health]<br>Mutation Probability: [S.mutation_chance]")
|
|
|
|
var/list/mutations = list()
|
|
for(var/potential_color in S.slime_mutation)
|
|
var/mob/living/simple_mob/slime/xenobio/slime = potential_color
|
|
mutations.Add(initial(slime.slime_color))
|
|
user.show_message("Potental to mutate into [english_list(mutations)] colors.<br>Extract potential: [S.cores]<br>Nutrition: [S.nutrition]/[S.max_nutrition]")
|
|
|
|
if (S.nutrition < S.get_starve_nutrition())
|
|
user.show_message(span_warning("Warning: Subject is starving!"))
|
|
else if (S.nutrition < S.get_hunger_nutrition())
|
|
user.show_message(span_warning("Warning: Subject is hungry."))
|
|
user.show_message("Electric change strength: [S.power_charge]")
|
|
|
|
if(S.has_AI())
|
|
var/datum/ai_holder/simple_mob/xenobio_slime/AI = S.ai_holder
|
|
if(AI.resentment)
|
|
user.show_message(span_warning("Warning: Subject is harboring resentment."))
|
|
if(AI.rabid)
|
|
user.show_message(span_danger("Subject is enraged and extremely dangerous!"))
|
|
if(S.harmless)
|
|
user.show_message("Subject has been pacified.")
|
|
if(S.unity)
|
|
user.show_message("Subject is friendly to other slime colors.")
|
|
|
|
user.show_message("Growth progress: [S.amount_grown]/10")
|