Skip to content

Commit

Permalink
we flick now
Browse files Browse the repository at this point in the history
  • Loading branch information
kiVts committed May 29, 2024
1 parent 1905827 commit 49bc589
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
if(!busy)
busy = TRUE
addtimer(CALLBACK(src, PROC_REF(process_organ), organ.research_value), 3 SECONDS)
icon_state = "xeno_analyzer_on_moving"
flick("xeno_analyzer_on_moving", src)
playsound(loc, 'sound/machines/blender.ogg', 25, TRUE)
QDEL_NULL(organ)
. = TRUE
Expand Down Expand Up @@ -170,14 +170,13 @@
if((upgrade.clearance_req > GLOB.chemical_data.clearance_level && upgrade.clearance_req != 6) || (upgrade.clearance_req == 6 && !GLOB.chemical_data.reached_x_access))
to_chat(user, SPAN_WARNING("[src] makes a annoying hum and flashes red - you don't have access to this upgrade!"))
return
icon_state = "xeno_analyzer_printing"
flick("xeno_analyzer_printing", src)
busy = TRUE
biomass_points -= clamp(upgrade.value_upgrade + upgrade.change_purchase * technology_purchased[datum_upgrades], upgrade.minimum_price, upgrade.maximum_price)
technology_purchased[datum_upgrades] += 1
addtimer(CALLBACK(src, PROC_REF(print_upgrade), produce_path, variation), 3 SECONDS)

/obj/structure/machinery/xenoanalyzer/proc/print_upgrade(produce_path, variation)
busy = FALSE
icon_state = "xeno_analyzer"
new produce_path(get_turf(src), variation)

0 comments on commit 49bc589

Please sign in to comment.