mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 14:00:18 +01:00
Adds examine boxes. (#18370)
* Adds examine boxes. * lint * what kind of dreams did you dream? * unlimited * midgardsormr * sdsd * fixes --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -46,23 +46,23 @@
|
||||
if(81 to 100)
|
||||
add_overlay("bees3")
|
||||
|
||||
/obj/machinery/beehive/examine(mob/user, distance, is_adjacent)
|
||||
/obj/machinery/beehive/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
to_chat(user, SPAN_NOTICE("\The [src] is holding <b>[frames]/[maxFrames]</b> frames."))
|
||||
. += SPAN_NOTICE("\The [src] is holding <b>[frames]/[maxFrames]</b> frames.")
|
||||
if(is_adjacent)
|
||||
if(bee_count)
|
||||
if(closed)
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("You can hear buzzing from within \the [src].")))
|
||||
. += FONT_SMALL(SPAN_NOTICE("You can hear buzzing from within \the [src]."))
|
||||
else
|
||||
to_chat(user, FONT_SMALL(SPAN_WARNING("The lid is <b>open</b>. The bees can't grow and produce honey until it's <b>closed!</b>")))
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("You can see bees buzzing around within \the [src].")))
|
||||
. += FONT_SMALL(SPAN_WARNING("The lid is <b>open</b>. The bees can't grow and produce honey until it's <b>closed!</b>"))
|
||||
. += FONT_SMALL(SPAN_NOTICE("You can see bees buzzing around within \the [src]."))
|
||||
else
|
||||
if(closed)
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("\The [src] lies silent.")))
|
||||
. += FONT_SMALL(SPAN_NOTICE("\The [src] lies silent."))
|
||||
else
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("You can see bees buzzing around within \the [src].")))
|
||||
. += FONT_SMALL(SPAN_NOTICE("You can see bees buzzing around within \the [src]."))
|
||||
if(honeycombs / 100 > 1)
|
||||
to_chat(user, SPAN_NOTICE("\The [src] has a frame full of honeycombs which you can harvest."))
|
||||
. += SPAN_NOTICE("\The [src] has a frame full of honeycombs which you can harvest.")
|
||||
|
||||
/obj/machinery/beehive/attackby(obj/item/I, mob/user)
|
||||
if(I.iscrowbar())
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
var/obj/item/honey_frame/contained_frame
|
||||
var/honey = 0
|
||||
|
||||
/obj/machinery/honey_extractor/examine(var/mob/user)
|
||||
/obj/machinery/honey_extractor/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(contained_frame)
|
||||
to_chat(user, SPAN_NOTICE("It's holding \the <b>[contained_frame]</b>."))
|
||||
to_chat(user, SPAN_NOTICE("It contains <b>[honey]</b> units of honey for collection."))
|
||||
. += SPAN_NOTICE("It's holding \the <b>[contained_frame]</b>.")
|
||||
. += SPAN_NOTICE("It contains <b>[honey]</b> units of honey for collection.")
|
||||
|
||||
/obj/machinery/honey_extractor/attackby(obj/item/I, mob/user)
|
||||
if(contained_frame)
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
var/caught_bees = 0
|
||||
var/feralbees
|
||||
|
||||
/obj/item/bee_net/examine(mob/user)
|
||||
/obj/item/bee_net/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(caught_bees)
|
||||
to_chat(user, SPAN_NOTICE("It contains [caught_bees] bees."))
|
||||
. += SPAN_NOTICE("It contains [caught_bees] bees.")
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("It is empty."))
|
||||
. += SPAN_NOTICE("It is empty.")
|
||||
|
||||
/obj/item/bee_net/attack_self(mob/user)
|
||||
var/turf/T = get_step(get_turf(user), user.dir)
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
w_class = ITEMSIZE_LARGE
|
||||
var/max_fuel = 60
|
||||
|
||||
/obj/item/bee_smoker/examine(mob/user, distance, is_adjacent)
|
||||
/obj/item/bee_smoker/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(is_adjacent)
|
||||
to_chat(user, SPAN_NOTICE("It has <b>[get_fuel()]/[max_fuel]</b> welding fuel left."))
|
||||
. += SPAN_NOTICE("It has <b>[get_fuel()]/[max_fuel]</b> welding fuel left.")
|
||||
|
||||
/obj/item/bee_smoker/Initialize()
|
||||
. = ..()
|
||||
|
||||
@@ -69,10 +69,10 @@ GLOBAL_LIST_EMPTY(plant_seed_sprites)
|
||||
sm.Blend(so, ICON_OVERLAY)
|
||||
return sm
|
||||
|
||||
/obj/item/seeds/examine(mob/user)
|
||||
/obj/item/seeds/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(seed && !seed.roundstart)
|
||||
to_chat(user, "It's tagged as variety #[seed.uid].")
|
||||
. += "It's tagged as variety #[seed.uid]."
|
||||
|
||||
/obj/item/seeds/cutting
|
||||
name = SEED_NOUN_CUTTINGS
|
||||
|
||||
@@ -622,31 +622,29 @@
|
||||
else if(dead)
|
||||
remove_dead(user)
|
||||
|
||||
/obj/machinery/portable_atmospherics/hydroponics/examine(mob/user, distance, is_adjacent)
|
||||
|
||||
/obj/machinery/portable_atmospherics/hydroponics/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
|
||||
if(!seed)
|
||||
to_chat(usr, "[src] is empty.")
|
||||
. += "[src] is empty."
|
||||
return
|
||||
|
||||
to_chat(usr, "<span class='notice'>[seed.display_name] are growing here.</span>")
|
||||
. += "<span class='notice'>[seed.display_name] are growing here.</span>"
|
||||
|
||||
if(!is_adjacent)
|
||||
return
|
||||
|
||||
to_chat(usr, "Water: [round(waterlevel,0.1)]/100")
|
||||
to_chat(usr, "Nutrient: [round(nutrilevel,0.1)]/10")
|
||||
. += "The water gauge displays [round(waterlevel,0.1)]/100."
|
||||
. += "The nutrient gauge displays [round(nutrilevel,0.1)]/10."
|
||||
|
||||
if(weedlevel >= 5)
|
||||
to_chat(usr, "\The [src] is <span class='danger'>infested with weeds</span>!")
|
||||
. += "\The [src] is <span class='danger'>infested with weeds</span>!"
|
||||
if(pestlevel >= 5)
|
||||
to_chat(usr, "\The [src] is <span class='danger'>infested with tiny worms</span>!")
|
||||
. += "\The [src] is <span class='danger'>infested with tiny worms</span>!"
|
||||
|
||||
if(dead)
|
||||
to_chat(usr, "<span class='danger'>The plant is dead.</span>")
|
||||
. += "<span class='danger'>The plant is dead.</span>"
|
||||
else if(health <= (seed.get_trait(TRAIT_ENDURANCE)/ 2))
|
||||
to_chat(usr, "The plant looks <span class='danger'>unhealthy</span>.")
|
||||
. += "The plant looks <span class='danger'>unhealthy</span>."
|
||||
|
||||
if(mechanical)
|
||||
var/turf/T = loc
|
||||
@@ -674,7 +672,7 @@
|
||||
|
||||
light_string = "a light level of [light_available] lumens"
|
||||
|
||||
to_chat(usr, "The tray's sensor suite is reporting [light_string] and a temperature of [environment.temperature]K.")
|
||||
. += "The tray's sensor suite is reporting [light_string] and a temperature of [environment.temperature]K."
|
||||
|
||||
/obj/machinery/portable_atmospherics/hydroponics/verb/close_lid_verb()
|
||||
set name = "Toggle Tray Lid"
|
||||
|
||||
Reference in New Issue
Block a user