Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Update mining_tools.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Helg2 committed Jun 23, 2024
1 parent e741c42 commit c8da53b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modular_RUtgmc/code/game/objects/items/tools/mining_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@
if(mention_charge && amount > 0)
balloon_alert(user, "Charge Remaining: [cell.charge]/[cell.maxcharge]")
update_plasmacutter()

//Called before any other attack proc.
/obj/item/tool/pickaxe/plasmacutter/preattack(atom/target, mob/user, params)
if(issynth(user) && isxeno(target)) // in theory we could add a flag that does this instead of copying proc for every item, but its just 2 currently
to_chat(user, span_warning("Your program prohibits you from doing this!"))
return TRUE
return FALSE

0 comments on commit c8da53b

Please sign in to comment.