Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /obj/item/weapon/tank/plasmatank/proc/ignite()
- var/strength = ((src.gas.plasma + src.gas.oxygen/2.0) / 1600000.0) * src.gas.temperature
- //if ((src.gas.plasma < 1600000.0 || src.gas.temperature < 773)) //500degC
- if (strength < 773.0)
- var/turf/T = get_turf(src.loc)
- T.poison += src.gas.plasma
- T.firelevel = T.poison
- T.res_vars()
- if(src.master)
- src.master.loc = null
- //if ((src.gas.temperature > (450+T0C) && src.gas.plasma == 1600000.0))
- if (strength > (450+T0C))
- var/turf/sw = locate(max(T.x - 4, 1), max(T.y - 4, 1), T.z)
- var/turf/ne = locate(min(T.x + 4, world.maxx), min(T.y + 4, world.maxy), T.z)
- defer_powernet_rebuild = 1
- for(var/turf/U in block(sw, ne))
- var/zone = 4
- if ((U.y <= (T.y + 1) && U.y >= (T.y - 1) && U.x <= (T.x + 2) && U.x >= (T.x - 2)) )
- zone = 3
- if ((U.y <= (T.y + 1) && U.y >= (T.y - 1) && U.x <= (T.x + 1) && U.x >= (T.x - 1) ))
- zone = 2
- for(var/atom/A in U)
- A.ex_act(zone)
- //Foreach goto(342)
- U.ex_act(zone)
- U.buildlinks()
- //Foreach goto(170)
- defer_powernet_rebuild = 0
- makepowernets()
- else
- //if ((src.gas.temperature > (300+T0C) && src.gas.plasma == 1600000.0))
- if (strength > (300+T0C))
- var/turf/sw = locate(max(T.x - 4, 1), max(T.y - 4, 1), T.z)
- var/turf/ne = locate(min(T.x + 4, world.maxx), min(T.y + 4, world.maxy), T.z)
- defer_powernet_rebuild = 1
- for(var/turf/U in block(sw, ne))
- var/zone = 4
- if ((U.y <= (T.y + 2) && U.y >= (T.y - 2) && U.x <= (T.x + 2) && U.x >= (T.x - 2)) )
- zone = 3
- for(var/atom/A in U)
- A.ex_act(zone)
- //Foreach goto(598)
- U.ex_act(zone)
- U.buildlinks()
- //Foreach goto(498)
- defer_powernet_rebuild = 0
- makepowernets()
- //src.master = null
- del(src.master)
- //SN src = null
- del(src)
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement