Skip to content

Commit

Permalink
bugfix: minebot lamp can be enabled. (ss220-space#4992)
Browse files Browse the repository at this point in the history
* Update minebot.dm

* Update minebot.dm
  • Loading branch information
Daeberdir authored May 4, 2024
1 parent e57860d commit e769ceb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/modules/mining/minebot.dm
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,11 @@
name = "Toggle Light"
button_icon_state = "mech_lights_off"


/datum/action/innate/minedrone/toggle_light/Activate()
var/mob/living/simple_animal/hostile/mining_drone/user = owner
owner.set_light_on(!owner.light_on)
to_chat(owner, span_notice("You toggle your light [owner.light_on ? "on" : "off"]."))

if(user.light_on)
user.set_light_on(FALSE)
else
user.set_light_range(6)
to_chat(user, "<span class='notice'>You toggle your light [user.light_on ? "on" : "off"].</span>")

/datum/action/innate/minedrone/toggle_meson_vision
name = "Toggle Meson Vision"
Expand Down

0 comments on commit e769ceb

Please sign in to comment.