mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Fixes somethings I broke.
fixes walls spawning their metal in an odd spot because of loc vs src confusion. fixes ashdrakes's flame wall getting confused when it tried to see if the turf it is standing on is atmosly connected to the turf it is standing on.
This commit is contained in:
@@ -30,11 +30,11 @@
|
||||
user << "<span class='notice'>The support rods have been <i>sliced through</i>, and the outer sheath is <b>connected loosely</b> to the girder.</span>"
|
||||
|
||||
/turf/closed/wall/r_wall/break_wall()
|
||||
new sheet_type(loc)
|
||||
new sheet_type(src)
|
||||
return (new /obj/structure/girder/reinforced(src))
|
||||
|
||||
/turf/closed/wall/r_wall/devastate_wall()
|
||||
new sheet_type(loc)
|
||||
new sheet_type(src)
|
||||
new /obj/item/stack/sheet/metal(src, 2)
|
||||
|
||||
/turf/closed/wall/r_wall/attack_animal(mob/living/simple_animal/M)
|
||||
|
||||
@@ -43,12 +43,12 @@
|
||||
ChangeTurf(/turf/open/floor/plating)
|
||||
|
||||
/turf/closed/wall/proc/break_wall()
|
||||
var/obj/item/stack/sheet/builtin_sheet = new sheet_type(loc)
|
||||
var/obj/item/stack/sheet/builtin_sheet = new sheet_type(src)
|
||||
builtin_sheet.amount = 2
|
||||
return (new /obj/structure/girder(src))
|
||||
|
||||
/turf/closed/wall/proc/devastate_wall()
|
||||
var/obj/item/stack/sheet/builtin_sheet = new sheet_type(loc)
|
||||
var/obj/item/stack/sheet/builtin_sheet = new sheet_type(src)
|
||||
builtin_sheet.amount = 2
|
||||
new /obj/item/stack/sheet/metal(src)
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ Difficulty: Medium
|
||||
var/range = 10
|
||||
var/turf/previousturf = get_turf(src)
|
||||
for(var/turf/J in getline(src,E))
|
||||
if(!range || !previousturf.atmos_adjacent_turfs || !previousturf.atmos_adjacent_turfs[J])
|
||||
if(!range || (J != previousturf && (!previousturf.atmos_adjacent_turfs || !previousturf.atmos_adjacent_turfs[J])))
|
||||
break
|
||||
range--
|
||||
PoolOrNew(/obj/effect/hotspot,J)
|
||||
|
||||
Reference in New Issue
Block a user