Skip to content

Commit

Permalink
Update RCD.dm (TauCetiStation#12778)
Browse files Browse the repository at this point in the history
  • Loading branch information
KandreyKandrey authored Jan 29, 2024
1 parent d19c29a commit 8a52de8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions code/game/objects/items/weapons/RCD.dm
Original file line number Diff line number Diff line change
Expand Up @@ -214,21 +214,17 @@ RCD
return TRUE

/obj/item/weapon/rcd/tool_start_check(mob/user, amount)
. = ..()
if(.)
return matter >= amount
return matter >= amount

/obj/item/weapon/rcd/borg/use(amount, mob/user)
if(!isrobot(user))
return FALSE
return user:cell:use(amount * 30)

/obj/item/weapon/rcd/borg/tool_start_check(mob/user, amount)
. = ..()
if(.)
if(!isrobot(user))
return FALSE
return user:cell:charge >= (amount * 30)
if(!isrobot(user))
return FALSE
return user:cell:charge >= (amount * 30)

/obj/item/weapon/rcd/borg/atom_init()
. = ..()
Expand Down

0 comments on commit 8a52de8

Please sign in to comment.