mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-08 16:41:58 +00:00
- Refactors action button backend
- Action buttons are no longer checked on Life(), items are responsible
for adding/removing/updating them.
- Item action buttons are no longer a static action_button_name define,
items define actions_types, which is a list of paths.
- Items can now have multiple action buttons.
- This is handled by new arguments to ui_action_click, the first
parameter is the user, the second is the path of the action datum
that was invoked.
- Refactored how internals function
- You may now directly switch internals without breaking anything.
- The internals icon has been updated to be more consistent.
- Added action buttons for jetpacks
- Added action buttons for oxygen tanks
- Uses-based implants now qdel() themselves when they run out of uses.
This is somewhat a buff to traitor implants, but it's such a minor
change. The actual reasoning is so that the action buttons are properly
removed.
- Fixed a bug with the "Boo" spell which resulted in IsAvailable failing
for certain ghosts.
- You can now shift-click on movable HUD elements to reset them to the
proper position (thank fucking christ)
68 lines
2.2 KiB
Plaintext
68 lines
2.2 KiB
Plaintext
/obj/item/weapon/implant/weapons_auth
|
|
name = "firearms authentication implant"
|
|
desc = "Lets you shoot your guns"
|
|
icon_state = "auth"
|
|
origin_tech = "materials=2;magnets=2;programming=2;biotech=5;syndicate=5"
|
|
activated = 0
|
|
|
|
/obj/item/weapon/implant/weapons_auth/get_data()
|
|
var/dat = {"<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> Firearms Authentication Implant<BR>
|
|
<b>Life:</b> 4 hours after death of host<BR>
|
|
<b>Implant Details:</b> <BR>
|
|
<b>Function:</b> Allows operation of implant-locked weaponry, preventing equipment from falling into enemy hands."}
|
|
return dat
|
|
|
|
|
|
/obj/item/weapon/implant/adrenalin
|
|
name = "adrenal implant"
|
|
desc = "Removes all stuns and knockdowns."
|
|
icon_state = "adrenal"
|
|
origin_tech = "materials=2;biotech=4;combat=3;syndicate=4"
|
|
uses = 3
|
|
|
|
/obj/item/weapon/implant/adrenalin/get_data()
|
|
var/dat = {"<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> Cybersun Industries Adrenaline Implant<BR>
|
|
<b>Life:</b> Five days.<BR>
|
|
<b>Important Notes:</b> <font color='red'>Illegal</font><BR>
|
|
<HR>
|
|
<b>Implant Details:</b> Subjects injected with implant can activate an injection of medical cocktails.<BR>
|
|
<b>Function:</b> Removes stuns, increases speed, and has a mild healing effect.<BR>
|
|
<b>Integrity:</b> Implant can only be used three times before reserves are depleted."}
|
|
return dat
|
|
|
|
/obj/item/weapon/implant/adrenalin/activate()
|
|
uses--
|
|
to_chat(imp_in, "<span class='notice'>You feel a sudden surge of energy!</span>")
|
|
imp_in.SetStunned(0)
|
|
imp_in.SetWeakened(0)
|
|
imp_in.SetParalysis(0)
|
|
imp_in.adjustStaminaLoss(-75)
|
|
imp_in.lying = 0
|
|
imp_in.update_canmove()
|
|
|
|
imp_in.reagents.add_reagent("synaptizine", 10)
|
|
imp_in.reagents.add_reagent("omnizine", 10)
|
|
imp_in.reagents.add_reagent("stimulative_agent", 10)
|
|
if(!uses)
|
|
qdel(src)
|
|
|
|
|
|
/obj/item/weapon/implant/emp
|
|
name = "emp implant"
|
|
desc = "Triggers an EMP."
|
|
icon_state = "emp"
|
|
origin_tech = "materials=2;biotech=3;magnets=4;syndicate=4"
|
|
uses = 2
|
|
|
|
/obj/item/weapon/implant/emp/activate()
|
|
uses--
|
|
empulse(imp_in, 3, 5)
|
|
if(!uses)
|
|
qdel(src)
|
|
|
|
/obj/item/weapon/implant/cortical
|
|
name = "cortical stack"
|
|
desc = "A fist-sized mass of biocircuits and chips."
|
|
icon_state = "implant_evil" |