mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 01:51:46 +00:00
Fixes #17203. 🆑 coiax rscadd: Kinetic accelerators only require one hand to be fired, as before rscdel: Kinetic accelerators recharge time is multiplied by the number of KAs that person is carrying. rscdel: Kinetic accelerators lose their charge quickly if not equipped or being held rscadd: Kinetic accelerator modkits (made at R&D or your local Free Golem ship) overcome these flaws /🆑 Effects on people who just use one kinetic accelerator: *They can now carry a mining satchel in the off hand again.* Effects on people who want to dual wield them both at once: They can do this, but they recharge twice as slow, so no increase in DPS. Effects on people who quasi-dual wielded by swapping them in and out of the backpack: Now treated the same as dual wielders. And as before, modkits mean you can properly dual wield KAs. Mining cyborgs are unaffected.
30 lines
935 B
Plaintext
30 lines
935 B
Plaintext
/obj/item/modkit
|
|
name = "modification kit"
|
|
desc = "A one-use kit, which enables kinetic accelerators to retain their \
|
|
charge when away from a bioelectric source, renders them immune to \
|
|
interference with other accelerators, as well as allowing less \
|
|
dextrous races to use the tool."
|
|
icon = 'icons/obj/objects.dmi'
|
|
icon_state = "modkit"
|
|
origin_tech = "programming=2;materials=2;magnets=4"
|
|
var/uses = 1
|
|
|
|
/obj/item/modkit/afterattack(obj/item/weapon/gun/energy/kinetic_accelerator/C, mob/user)
|
|
..()
|
|
if(!uses)
|
|
qdel(src)
|
|
return
|
|
if(!istype(C))
|
|
user << "<span class='warning'>This kit can only modify kinetic \
|
|
accelerators!</span>"
|
|
return ..()
|
|
user <<"<span class='notice'>You modify the [C], adjusting the trigger \
|
|
guard and internal capacitor.</span>"
|
|
C.name = "improved [C.name]"
|
|
C.holds_charge = TRUE
|
|
C.unique_frequency = TRUE
|
|
C.trigger_guard = TRIGGER_GUARD_ALLOW_ALL
|
|
uses--
|
|
if(!uses)
|
|
qdel(src)
|