Skip to content

Commit

Permalink
scraped (#9872)
Browse files Browse the repository at this point in the history
  • Loading branch information
CydiaLamiales authored Sep 23, 2023
1 parent ad0df5a commit c8f9b90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion code/datums/elements/rust.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
user.balloon_alert(user, "You start scraping off the rust...")
if(!do_after(user, 2 SECONDS * item.toolspeed, target = source))
return
user.balloon_alert(user, "Sucessfully scraped off the rust!")
if(istype(item, /obj/item/wirebrush/advanced))
var/obj/item/wirebrush/advanced/brush = item
brush.irradiate(user)
else
user.balloon_alert(user, "Sucessfully scraped off the rust!")
Detach(source)
return
4 changes: 1 addition & 3 deletions code/game/objects/items/tools/wirebrush.dm
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
. = ..()
. += "<span class='danger'>There is a warning label that indicates extended use of [src] may result in loss of hair, yellowing skin, and death.</span>"

/obj/item/wirebrush/advanced/pre_attack(atom/A, mob/living/user)
. = ..()

/obj/item/wirebrush/advanced/proc/irradiate(mob/living/user)
if(!istype(user))
return

Expand Down

0 comments on commit c8f9b90

Please sign in to comment.