Well. the analyser can analyse canisters now.
so who do i send the the code and guide where to place it?
il paste the main code here if you need any more help just ask.
/obj/machinery/atmoalter/canister/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
if ((istype(W, /obj/item/weapon/tank) && !( src.destroyed )))
if (src.holding)
return
var/obj/item/weapon/tank/T = W
user.drop_item()
T.loc = src
src.holding = T
update_icon()
else
if ((istype(W, /obj/item/weapon/wrench)))
var/obj/machinery/connector/con = locate(/obj/machinery/connector, src.loc)
if (src.c_status)
src.anchored = 0
src.c_status = 0
user.show_message("\blue You have disconnected the canister.", 1)
if(con)
con.connected = null
else
if(con && !con.connected && !destroyed)
src.anchored = 1
src.c_status = 3
user.show_message("\blue You have connected the canister.", 1)
con.connected = src
else
user.show_message("\blue There is nothing here with which to connect the canister.", 1)
else if(istype(W, /obj/item/weapon/analyzer) && get_dist(user, src) <= 1)
view(3,usr) << "\red [user] has used the analyzer on \icon[icon]"
var/total = src.gas.tot_gas()
var/t1 = 0
user << "\blue Results of analysis of canister."
if (total)
user << "\blue Overall: [total] / [src.gas.maximum]"
t1 = round( src.gas.n2 / total * 100 , 0.0010)
user << "\blue Nitrogen: [t1]%"
t1 = round( src.gas.oxygen / total * 100 , 0.0010)
user << "\blue Oxygen: [t1]%"
t1 = round( src.gas.plasma / total * 100 , 0.0010)
user << "\blue Plasma: [t1]%"
t1 = round( src.gas.co2 / total * 100 , 0.0010)
user << "\blue CO2: [t1]%"
t1 = round( src.gas.sl_gas / total * 100 , 0.0010)
user << "\blue N2O: [t1]%"
user << text("\blue Temperature: []°C", src.gas.temperature-T0C)
src.add_fingerprint(user)
else
user << "\blue Tank is empty!"
src.add_fingerprint(user)
else
switch(W.damtype)
if("fire")
src.health -= W.force
if("brute")
src.health -= W.force * 0.5
else
src.healthcheck()
..()
return
btw this is the entire function. so if you fine just replace if you know you haven't changed anything yourself. or add the part from else if(istype(W, /obj/item/weapon/analyzer) && get_dist(user, src) <= 1) to src.add_fingerprint(user).
-Head