Skip to content

Commit

Permalink
helmet rail light tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Aug 28, 2023
1 parent 2bb76db commit cc69c84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,8 @@ Defined in conflicts.dm of the #defines folder.
var/original_state = "flashlight"
var/original_attach = "flashlight_a"

var/helm_mounted_light_mod = 5
var/helm_mounted_light_power = 2
var/helm_mounted_light_range = 3

var/datum/action/item_action/activation
var/obj/item/attached_item
Expand Down Expand Up @@ -671,8 +672,8 @@ Defined in conflicts.dm of the #defines folder.
attach_icon += "-on"
light_on = TRUE
attached_item.update_icon()
attached_item.set_light_range(helm_mounted_light_mod)
attached_item.set_light_power(helm_mounted_light_mod)
attached_item.set_light_range(helm_mounted_light_range)
attached_item.set_light_power(helm_mounted_light_power)
attached_item.set_light_on(light_on)
activation.update_button_icon()
return
Expand Down

0 comments on commit cc69c84

Please sign in to comment.