/obj/mecha/combat/phazon desc = "An exosuit which can only be described as 'WTF?'." name = "Phazon" icon_state = "phazon" initial_icon = "phazon" step_in = 2 dir_in = 2 //Facing south. step_energy_drain = 3 health = 200 deflect_chance = 30 damage_absorption = list("brute"=0.7,"fire"=0.7,"bullet"=0.7,"laser"=0.7,"energy"=0.7,"bomb"=0.7) max_temperature = 25000 infra_luminosity = 3 wreckage = /obj/effect/decal/mecha_wreckage/phazon add_req_access = 1 //operation_req_access = list() internal_damage_threshold = 25 force = 15 var/phasing = 0 var/phasing_energy_drain = 200 max_equip = 3 /obj/mecha/combat/phazon/New() ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/rcd ME.attach(src) ME = new /obj/item/mecha_parts/mecha_equipment/gravcatapult ME.attach(src) /obj/mecha/combat/phazon/mechstep(direction) . = ..() if(!. && phasing && get_charge() >= phasing_energy_drain) if(can_move) can_move = 0 flick("phazon-phase", src) forceMove(get_step(src, direction)) use_power(phasing_energy_drain) playsound(src,stepsound,40,1) sleep(step_in * 3) can_move = 1 return 1 /obj/mecha/combat/phazon/click_action(atom/target,mob/user) if(phasing) occupant_message("Unable to interact with objects while phasing") return return ..() /obj/mecha/combat/phazon/verb/switch_damtype() set category = "Exosuit Interface" set name = "Reconfigure arm microtool arrays" set src = usr.loc set popup_menu = 0 if(usr != occupant) return var/new_damtype = alert(occupant, "Arm Tool Selection", null, "Fists", "Torch", "Toxic Injector") switch(new_damtype) if("Fists") damtype = "brute" occupant_message("Your exosuit's hands form into fists.") if("Torch") damtype = "fire" occupant_message("A torch tip extends from your exosuit's hand, glowing red.") if("Toxic Injector") damtype = "tox" occupant_message("A bone-chillingly thick plasteel needle protracts from the exosuit's palm.") playsound(src, 'sound/mecha/mechmove01.ogg', 50, 1) /obj/mecha/combat/phazon/get_commands() var/output = {"
"} output += ..() return output /obj/mecha/combat/phazon/Topic(href, href_list) ..() if(href_list["switch_damtype"]) switch_damtype() if(href_list["phasing"]) phasing = !phasing send_byjax(occupant,"exosuit.browser","phasing_command","[phasing?"Dis":"En"]able phasing") occupant_message("En":"#f00\">Dis"]abled phasing.")