/obj/mecha/combat/durand desc = "It's time to light some fires and kick some tires." name = "Durand Mk. II" icon_state = "durand" initial_icon = "durand" step_in = 4 dir_in = 1 //Facing North. health = 400 deflect_chance = 20 damage_absorption = list("brute"=0.5,"fire"=1.1,"bullet"=0.65,"laser"=0.85,"energy"=0.9,"bomb"=0.8) max_temperature = 30000 infra_luminosity = 8 force = 40 var/defence = 0 var/defence_deflect = 35 wreckage = /obj/effect/decal/mecha_wreckage/durand /obj/mecha/combat/durand/loaded/New() ..() var/obj/item/mecha_parts/mecha_equipment/ME = new /obj/item/mecha_parts/mecha_equipment/weapon/energy/laser/heavy ME.attach(src) ME = new /obj/item/mecha_parts/mecha_equipment/weapon/ballistic/missile_rack ME.attach(src) /obj/mecha/combat/durand/relaymove(mob/user,direction) if(defence) if(world.time - last_message > 20) occupant_message("Unable to move while in defence mode") last_message = world.time return 0 . = ..() /obj/mecha/combat/durand/verb/defence_mode() set category = "Exosuit Interface" set name = "Toggle defence mode" set src = usr.loc set popup_menu = 0 if(usr != occupant) return defence = !defence if(defence) deflect_chance = defence_deflect occupant_message("You enable [src] defence mode.") else deflect_chance = initial(deflect_chance) occupant_message("You disable [src] defence mode.") log_message("Toggled defence mode.") /obj/mecha/combat/durand/get_stats_part() var/output = ..() output += "Defence mode: [defence?"on":"off"]" return output /obj/mecha/combat/durand/get_commands() var/output = {"
Special
"} output += ..() return output /obj/mecha/combat/durand/Topic(href, href_list) ..() if(href_list["toggle_defence_mode"]) defence_mode() /obj/mecha/combat/durand/old desc = "A retired, third-generation combat exosuit utilized by the Nanotrasen corporation. Originally developed to combat hostile alien lifeforms." name = "Durand" icon_state = "old_durand" initial_icon = "old_durand" step_in = 4 dir_in = 1 //Facing North. health = 400 deflect_chance = 20 damage_absorption = list("brute"=0.5,"fire"=1.1,"bullet"=0.65,"laser"=0.85,"energy"=0.9,"bomb"=0.8) max_temperature = 30000 infra_luminosity = 8 force = 40 wreckage = /obj/effect/decal/mecha_wreckage/durand/old