mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
82 lines
2.3 KiB
Plaintext
82 lines
2.3 KiB
Plaintext
/obj/mecha/combat/gygax
|
|
desc = "A lightweight, security exosuit. Popular among private and corporate security."
|
|
name = "Gygax"
|
|
icon_state = "gygax"
|
|
step_in = 3
|
|
dir_in = 1 //Facing North.
|
|
health = 300
|
|
deflect_chance = 15
|
|
damage_absorption = list("brute"=0.75,"fire"=1,"bullet"=0.8,"laser"=0.7,"energy"=0.85,"bomb"=1)
|
|
max_temperature = 3500
|
|
infra_luminosity = 6
|
|
var/overload = 0
|
|
var/overload_coeff = 2
|
|
wreckage = /obj/effect/decal/mecha_wreckage/gygax
|
|
internal_damage_threshold = 35
|
|
max_equip = 3
|
|
|
|
|
|
|
|
/*
|
|
/obj/mecha/combat/gygax/New()
|
|
..()
|
|
weapons += new /datum/mecha_weapon/taser(src)
|
|
weapons += new /datum/mecha_weapon/laser(src)
|
|
weapons += new /datum/mecha_weapon/missile_rack/flashbang(src)
|
|
selected_weapon = weapons[1]
|
|
return
|
|
*/
|
|
|
|
/obj/mecha/combat/gygax/verb/overload()
|
|
set category = "Exosuit Interface"
|
|
set name = "Toggle leg actuators overload"
|
|
set src = usr.loc
|
|
set popup_menu = 0
|
|
if(usr!=src.occupant)
|
|
return
|
|
if(overload)
|
|
overload = 0
|
|
step_in = initial(step_in)
|
|
step_energy_drain = initial(step_energy_drain)
|
|
src.occupant_message("<font color='blue'>You disable leg actuators overload.</font>")
|
|
else
|
|
overload = 1
|
|
step_in = min(1, round(step_in/2))
|
|
step_energy_drain = step_energy_drain*overload_coeff
|
|
src.occupant_message("<font color='red'>You enable leg actuators overload.</font>")
|
|
src.log_message("Toggled leg actuators overload.")
|
|
return
|
|
|
|
/obj/mecha/combat/gygax/dyndomove(direction)
|
|
if(!..()) return
|
|
if(overload)
|
|
health--
|
|
if(health < initial(health) - initial(health)/3)
|
|
overload = 0
|
|
step_in = initial(step_in)
|
|
step_energy_drain = initial(step_energy_drain)
|
|
src.occupant_message("<font color='red'>Leg actuators damage threshold exceded. Disabling overload.</font>")
|
|
return
|
|
|
|
|
|
/obj/mecha/combat/gygax/get_stats_part()
|
|
var/output = ..()
|
|
output += "<b>Leg actuators overload: [overload?"on":"off"]</b>"
|
|
return output
|
|
|
|
/obj/mecha/combat/gygax/get_commands()
|
|
var/output = {"<div class='wr'>
|
|
<div class='header'>Special</div>
|
|
<div class='links'>
|
|
<a href='?src=\ref[src];toggle_leg_overload=1'>Toggle leg actuators overload</a>
|
|
</div>
|
|
</div>
|
|
"}
|
|
output += ..()
|
|
return output
|
|
|
|
/obj/mecha/combat/gygax/Topic(href, href_list)
|
|
..()
|
|
if (href_list["toggle_leg_overload"])
|
|
src.overload()
|
|
return |