Skip to content

Commit

Permalink
reversal of some changes
Browse files Browse the repository at this point in the history
d back to duration
  • Loading branch information
Sunless2 authored Nov 7, 2024
1 parent c56315e commit 135397b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/objects/structures/fence.dm
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@
playsound(src.loc, 'sound/items/Wirecutter.ogg', 25, 1)

//Bayonets are 3/4th as effective at cutting fences
var d = 10 * user.get_skill_duration_multiplier(SKILL_CONSTRUCTION)
var duration = 10 * user.get_skill_duration_multiplier(SKILL_CONSTRUCTION)
if(istype(W, /obj/item/attachable/bayonet))
d *= 1.5
duration *= 1.5

if(do_after(user, d, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
if(do_after(user, duration, INTERRUPT_ALL|BEHAVIOR_IMMOBILE, BUSY_ICON_BUILD))
playsound(loc, 'sound/items/Wirecutter.ogg', 25, 1)
user.visible_message(SPAN_NOTICE("[user] cuts through [src] with [W]."),
SPAN_NOTICE("You cut through [src] with [W]."))
Expand Down

0 comments on commit 135397b

Please sign in to comment.