Fixes anomaly harvester icon disappearing when enabled (#15412)

This commit is contained in:
listerla
2022-12-23 12:17:26 +01:00
committed by GitHub
parent 4cd09865d9
commit 5e2a170a8f
2 changed files with 11 additions and 5 deletions
@@ -87,7 +87,7 @@
cur_artifact.being_used = 0
cur_artifact = null
src.visible_message("<b>[name]</b> states, \"Battery is full.\"")
icon_state = "incubator"
icon_state = "harvester"
else if(harvesting < 0)
//dump some charge
@@ -112,7 +112,7 @@
if(inserted_battery.battery_effect && inserted_battery.battery_effect.activated)
inserted_battery.battery_effect.ToggleActivate()
src.visible_message("<b>[name]</b> states, \"Battery dump completed.\"")
icon_state = "incubator"
icon_state = "harvester"
/obj/machinery/artifact_harvester/Topic(href, href_list)
@@ -195,7 +195,7 @@
update_use_power(POWER_USE_ACTIVE)
cur_artifact.anchored = 1
cur_artifact.being_used = 1
icon_state = "incubator_on"
icon_state = "harvester_on"
var/message = "<b>[src]</b> states, \"Beginning energy harvesting.\""
src.visible_message(message)
last_process = world.time
@@ -222,7 +222,7 @@
cur_artifact.being_used = 0
cur_artifact = null
src.visible_message("<b>[name]</b> states, \"Energy harvesting interrupted.\"")
icon_state = "incubator"
icon_state = "harvester"
if (href_list["ejectbattery"])
src.inserted_battery.forceMove(src.loc)
@@ -237,7 +237,7 @@
last_process = world.time
harvesting = -1
update_use_power(POWER_USE_ACTIVE)
icon_state = "incubator_on"
icon_state = "harvester_on"
var/message = "<b>[src]</b> states, \"Warning, battery charge dump commencing.\""
src.visible_message(message)
else
+6
View File
@@ -0,0 +1,6 @@
author: listerla
delete-after: True
changes:
- bugfix: "Fixed anomaly harvesters disappearing when enabled."