mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01: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)
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
/obj/item/weapon/implant/freedom
|
|
name = "freedom implant"
|
|
desc = "Use this to escape from those evil Red Shirts."
|
|
icon_state = "freedom"
|
|
item_color = "r"
|
|
origin_tech = "materials=2;magnets=3;biotech=3;syndicate=4"
|
|
uses = 4
|
|
|
|
|
|
/obj/item/weapon/implant/freedom/activate()
|
|
uses--
|
|
to_chat(imp_in, "You feel a faint click.")
|
|
if(iscarbon(imp_in))
|
|
var/mob/living/carbon/C_imp_in = imp_in
|
|
C_imp_in.uncuff()
|
|
if(!uses)
|
|
qdel(src)
|
|
|
|
|
|
/obj/item/weapon/implant/freedom/get_data()
|
|
var/dat = {"
|
|
<b>Implant Specifications:</b><BR>
|
|
<b>Name:</b> Freedom Beacon<BR>
|
|
<b>Life:</b> optimum 5 uses<BR>
|
|
<b>Important Notes:</b> <font color='red'>Illegal</font><BR>
|
|
<HR>
|
|
<b>Implant Details:</b> <BR>
|
|
<b>Function:</b> Transmits a specialized cluster of signals to override handcuff locking
|
|
mechanisms<BR>
|
|
<b>Special Features:</b><BR>
|
|
<i>Neuro-Scan</i>- Analyzes certain shadow signals in the nervous system<BR>
|
|
<HR>
|
|
No Implant Specifics"}
|
|
return dat
|
|
|
|
|
|
/obj/item/weapon/implanter/freedom
|
|
name = "implanter (freedom)"
|
|
|
|
/obj/item/weapon/implanter/freedom/New()
|
|
imp = new /obj/item/weapon/implant/freedom(src)
|
|
..()
|
|
|
|
|
|
/obj/item/weapon/implantcase/freedom
|
|
name = "implant case - 'Freedom'"
|
|
desc = "A glass case containing a freedom implant."
|
|
|
|
/obj/item/weapon/implantcase/freedom/New()
|
|
imp = new /obj/item/weapon/implant/freedom(src)
|
|
..() |