Skip to content

Commit

Permalink
fix(blueprints): fix zones create (maybe)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaraBarax authored Jan 22, 2025
1 parent de57b76 commit 1cc31e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/game/objects/items/blueprints.dm
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ move an amendment</a> to the drawing, or <a href='?src=\ref[src];action=delete_a

A.always_unpowered = 0

var/zone/Z = new
move_turfs_to_zone(turfs, Z)

set_next_think(world.time + 1 SECOND)

/obj/item/blueprints/think()
Expand All @@ -148,6 +151,10 @@ move an amendment</a> to the drawing, or <a href='?src=\ref[src];action=delete_a
//oldarea.contents.Remove(usr.loc) // not needed
//T.loc = A //error: cannot change constant value

/obj/item/blueprints/proc/move_turfs_to_zone(list/turf/turfs, zone/Z)
for(var/turf/T in turfs)
Z.add(T)

/obj/item/blueprints/proc/edit_area(mob/user)
if(!user)
return
Expand Down

0 comments on commit 1cc31e1

Please sign in to comment.