diff --git a/code/game/machinery/cryo.dm b/code/game/machinery/cryo.dm index 94bc3f5b90b..6dd6182c930 100644 --- a/code/game/machinery/cryo.dm +++ b/code/game/machinery/cryo.dm @@ -134,7 +134,6 @@ if(air_contents) temperature_archived = air_contents.temperature heat_gas_contents() - expel_gas() if(occupant) process_occupant() @@ -401,16 +400,6 @@ var/combined_energy = T20C*current_heat_capacity + air_heat_capacity*air_contents.temperature air_contents.temperature = combined_energy/combined_heat_capacity -/obj/machinery/atmospherics/unary/cryo_cell/proc/expel_gas() - if(air_contents.total_moles() < 1) - return - var/datum/gas_mixture/expel_gas = new - var/remove_amount = air_contents.total_moles()/100 - expel_gas = air_contents.remove(remove_amount) - expel_gas.temperature = T20C // Lets expel hot gas and see if that helps people not die as they are removed - loc.assume_air(expel_gas) - air_update_turf() - /obj/machinery/atmospherics/unary/cryo_cell/proc/go_out() if(!occupant) return diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index 7ebf1e233c3..c8f93bc74ce 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -563,7 +563,9 @@ dam_coeff = B.damage_coeff break - if(prob(deflect_chance & deflection) && (Proj.damage_type == BRUTE || Proj.damage_type == BURN)) + if(prob(deflect_chance * deflection) && (Proj.damage_type == BRUTE || Proj.damage_type == BURN)) + visible_message("[src]'s armour deflects [Proj]!") + else visible_message("[src] is hit by [Proj].") take_damage(Proj.damage * dam_coeff, Proj.flag) check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT)) diff --git a/code/modules/spacepods/spacepod.dm b/code/modules/spacepods/spacepod.dm index b17eb9940ea..5a01cd5b09f 100644 --- a/code/modules/spacepods/spacepod.dm +++ b/code/modules/spacepods/spacepod.dm @@ -197,8 +197,7 @@ /obj/spacepod/bullet_act(var/obj/item/projectile/P) if(P.damage_type == BRUTE || P.damage_type == BURN) deal_damage(P.damage) - else if(P.flag == "energy" && istype(P,/obj/item/projectile/ion)) //needed to make sure ions work properly - empulse(src, 1, 1) + P.on_hit(src) /obj/spacepod/blob_act() deal_damage(30) @@ -284,35 +283,27 @@ /obj/spacepod/emp_act(severity) occupant_sanity_check() cargo_hold.emp_act(severity) + + if(battery && battery.charge > 0) + battery.use((battery.charge / 2) / severity) + deal_damage(80 / severity) + if(empcounter < (40 / severity)) + empcounter = 40 / severity + processing_objects.Add(src) + switch(severity) if(1) if(pilot) to_chat(pilot, "The pod console flashes 'Heavy EMP WAVE DETECTED'.") if(passengers) for(var/mob/M in passengers) - to_chat(M, "The pod console flashes 'Heavy EMP WAVE DETECTED'.")//warn the passengers - - - if(battery) - battery.charge = max(0, battery.charge - 5000) //Cell EMP act is too weak, this pod needs to be sapped. - src.deal_damage(100) - if(src.empcounter < 40) - src.empcounter = 40 //Disable movement for 40 ticks. Plenty long enough. - processing_objects.Add(src) - + to_chat(M, "The pod console flashes 'Heavy EMP WAVE DETECTED'.") if(2) if(pilot) to_chat(pilot, "The pod console flashes 'EMP WAVE DETECTED'.") if(passengers) for(var/mob/M in passengers) - to_chat(M, "The pod console flashes 'EMP WAVE DETECTED'.")//warn the passengers - - deal_damage(40) - if(battery) - battery.charge = max(0, battery.charge - 2500) //Cell EMP act is too weak, this pod needs to be sapped. - if(empcounter < 20) - empcounter = 20 //Disable movement for 20 ticks. - processing_objects.Add(src) + to_chat(M, "The pod console flashes 'EMP WAVE DETECTED'.") /obj/spacepod/attackby(obj/item/W as obj, mob/user as mob, params) if(user.a_intent == I_HARM) diff --git a/nano/templates/supply_console.tmpl b/nano/templates/supply_console.tmpl index accafa99626..3402e8982b5 100644 --- a/nano/templates/supply_console.tmpl +++ b/nano/templates/supply_console.tmpl @@ -52,8 +52,8 @@ Used In File(s): \code\game\supplyshuttle.dm Shuttle Control:
- {{:helper.link('Call Shuttle', 'circle-triangle-e', data.send, data.moving || data.at_station || !data.can_launch ? 'disabled' : '')}} - {{:helper.link('Return Shuttle', 'circle-triangle-w', data.send, data.moving || !data.at_station || !data.can_launch ? 'disabled' : '')}} + {{:helper.link('Call Shuttle', 'arrow-circle-down', data.send, data.moving || data.at_station || !data.can_launch ? 'disabled' : '')}} + {{:helper.link('Return Shuttle', 'arrow-circle-up', data.send, data.moving || !data.at_station || !data.can_launch ? 'disabled' : '')}}