mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fix for #7330.
This commit is contained in:
@@ -506,14 +506,17 @@
|
||||
src.visible_message("The [src.name] armor deflects the projectile")
|
||||
src.log_append_to_last("Armor saved.")
|
||||
return
|
||||
var/ignore_threshold
|
||||
if(Proj.flag == "taser")
|
||||
use_power(200)
|
||||
return
|
||||
if(istype(Proj, /obj/item/projectile/beam/pulse))
|
||||
ignore_threshold = 1
|
||||
src.take_damage(Proj.damage,Proj.flag)
|
||||
src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),ignore_threshold)
|
||||
|
||||
if(Proj.damage_type == HALLOSS)
|
||||
use_power(Proj.agony * 5)
|
||||
|
||||
if(!(Proj.nodamage))
|
||||
var/ignore_threshold
|
||||
if(istype(Proj, /obj/item/projectile/beam/pulse))
|
||||
ignore_threshold = 1
|
||||
src.take_damage(Proj.damage,Proj.flag)
|
||||
src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST,MECHA_INT_SHORT_CIRCUIT),ignore_threshold)
|
||||
|
||||
Proj.on_hit(src)
|
||||
return
|
||||
|
||||
@@ -1406,11 +1409,11 @@
|
||||
|
||||
/obj/mecha/proc/output_maintenance_dialog(obj/item/weapon/card/id/id_card,mob/user)
|
||||
if(!id_card || !user) return
|
||||
|
||||
|
||||
var/maint_options = "<a href='?src=\ref[src];set_internal_tank_valve=1;user=\ref[user]'>Set Cabin Air Pressure</a>"
|
||||
if (locate(/obj/item/mecha_parts/mecha_equipment/tool/passenger) in contents)
|
||||
maint_options += "<a href='?src=\ref[src];remove_passenger=1;user=\ref[user]'>Remove Passenger</a>"
|
||||
|
||||
maint_options += "<a href='?src=\ref[src];remove_passenger=1;user=\ref[user]'>Remove Passenger</a>"
|
||||
|
||||
var/output = {"<html>
|
||||
<head>
|
||||
<style>
|
||||
@@ -1568,23 +1571,23 @@
|
||||
for (var/obj/item/mecha_parts/mecha_equipment/tool/passenger/P in contents)
|
||||
if (P.occupant)
|
||||
passengers["[P.occupant]"] = P
|
||||
|
||||
|
||||
if (!passengers)
|
||||
user << "\red There are no passengers to remove."
|
||||
return
|
||||
|
||||
|
||||
var/pname = input(user, "Choose a passenger to forcibly remove.", "Forcibly Remove Passenger") as null|anything in passengers
|
||||
|
||||
|
||||
if (!pname)
|
||||
return
|
||||
|
||||
|
||||
var/obj/item/mecha_parts/mecha_equipment/tool/passenger/P = passengers[pname]
|
||||
var/mob/occupant = P.occupant
|
||||
|
||||
|
||||
user.visible_message("\red [user] begins opening the hatch on \the [P]...", "\red You begin opening the hatch on \the [P]...")
|
||||
if (!do_after(user, 40, needhand=0))
|
||||
return
|
||||
|
||||
|
||||
user.visible_message("\red [user] opens the hatch on \the [P] and removes [occupant]!", "\red You open the hatch on \the [P] and remove [occupant]!")
|
||||
P.go_out()
|
||||
P.log_message("[occupant] was removed.")
|
||||
|
||||
Reference in New Issue
Block a user