add investigate log for destroyed canisters (#28880)

This commit is contained in:
warriorstar-orion
2025-04-04 15:54:23 +00:00
committed by GitHub
parent 7940b20b0c
commit 9c3dd81dce
3 changed files with 36 additions and 3 deletions
@@ -201,6 +201,8 @@ GLOBAL_DATUM_INIT(canister_icon_container, /datum/canister_icons, new())
holding_tank = null
T.blind_release_air(expelled_gas)
if(attack_info)
investigate_log("canister destroyed, last attacked by [attack_info.last_attacker_html()][attack_info.last_weapon()]", INVESTIGATE_ATMOS)
/obj/machinery/atmospherics/portable/canister/proc/sync_pressure_appearance()
var/new_pressure_appearance = pressure_to_appearance(air_contents.return_pressure())
@@ -407,6 +409,14 @@ GLOBAL_DATUM_INIT(canister_icon_container, /datum/canister_icons, new())
. = ..()
update_icon()
/obj/machinery/atmospherics/portable/canister/attacked_by(obj/item/attacker, mob/living/user)
. = ..()
store_last_attacker(user, attacker)
/obj/machinery/atmospherics/portable/canister/attack_animal(mob/living/simple_animal/M)
. = ..()
store_last_attacker(M)
/obj/machinery/atmospherics/portable/canister/toxins
name = "Canister \[Toxin (Plasma)\]"
icon_state = "orange" //See Initialize()