Skip to content

Commit

Permalink
rpds can now interact with the unwrench upgrade (#57959)
Browse files Browse the repository at this point in the history
Adds the functionality to upgrade the RPD by 'slapping' the unwrench upgrade disk with the RPD itself

It doesn't exactly revolutionize gameplay and at most allows engineering cyborg players to at least upgrade their RPD to unwrench saving them a headache and a module slot when doing their thing I suppose
  • Loading branch information
DuffCreeper committed Mar 28, 2021
1 parent 947fae2 commit 885a5db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/objects/items/RPD.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ GLOBAL_LIST_INIT(transit_tube_recipes, list(
/obj/item/pipe_dispenser/attack_self(mob/user)
ui_interact(user)

/obj/item/pipe_dispenser/pre_attack(atom/target, mob/user, params)
if(istype(target, /obj/item/rpd_upgrade/unwrench))
install_upgrade(target, user)
return TRUE
return ..()

/obj/item/pipe_dispenser/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/rpd_upgrade))
install_upgrade(W, user)
Expand Down

0 comments on commit 885a5db

Please sign in to comment.