mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
[MIRROR] RPDs can install the unwrench upgrade by interacting with the disk (#4494)
* rpds can now interact with the unwrench upgrade (#57959) 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 * RPDs can install the unwrench upgrade by interacting with the disk Co-authored-by: DuffCreeper <treyparn@yahoo.com.au>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user