Skip to content

Commit

Permalink
Reflectors now need to be anchored to reflect, as well as lowered the…
Browse files Browse the repository at this point in the history
… hp of them (#26558)

* Reflectors now need to be anchored to reflect

* qwerty suggestion
  • Loading branch information
1080pCat authored Aug 29, 2024
1 parent 9dca367 commit d39cd4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/game/objects/structures/reflector.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
desc = "A frame to create a reflector.\n<span class='notice'>Use <b>5</b> sheets of <b>glass</b> to create a 1 way reflector.\nUse <b>10</b> sheets of <b>reinforced glass</b> to create a 2 way reflector.\nUse <b>1 diamond</b> to create a reflector cube.</span>"
anchored = FALSE
density = TRUE
max_integrity = 50
layer = 3
var/finished = FALSE
var/obj/item/stack/sheet/build_stack_type
Expand All @@ -17,7 +18,7 @@
if(!istype(P, /obj/item/projectile/beam))
return ..()
var/new_dir = get_reflection(dir, P.dir)
if(new_dir)
if(new_dir && anchored)
reflect_turf = get_step(reflect_turf, new_dir)
else
visible_message("<span class='notice'>[src] is hit by [P]!</span>")
Expand Down Expand Up @@ -90,13 +91,13 @@
return
if(anchored)
WELDER_ATTEMPT_FLOOR_SLICE_MESSAGE
if(!I.use_tool(src, user, 20, volume = I.tool_volume))
if(!I.use_tool(src, user, 5 SECONDS, volume = I.tool_volume))
return
WELDER_FLOOR_SLICE_SUCCESS_MESSAGE
anchored = FALSE
else
WELDER_ATTEMPT_FLOOR_WELD_MESSAGE
if(!I.use_tool(src, user, 20, volume = I.tool_volume))
if(!I.use_tool(src, user, 5 SECONDS, volume = I.tool_volume))
return
WELDER_FLOOR_WELD_SUCCESS_MESSAGE
anchored = TRUE
Expand Down

0 comments on commit d39cd4b

Please sign in to comment.