mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-20 05:34:10 +01:00
966873beb4
* [READY] Tile Reskinning 2: Epic Winaloo * AAA Co-authored-by: Fikou <piotrbryla@onet.pl> Co-authored-by: Gandalf <jzo123@hotmail.com>
28 lines
721 B
Plaintext
28 lines
721 B
Plaintext
/obj/effect/vaultspawner
|
|
var/maxX = 6
|
|
var/maxY = 6
|
|
var/minX = 2
|
|
var/minY = 2
|
|
|
|
/obj/effect/vaultspawner/New(turf/location,lX = minX,uX = maxX,lY = minY,uY = maxY,type = null)
|
|
if(!type)
|
|
type = pick("sandstone","rock","alien")
|
|
|
|
var/lowBoundX = location.x
|
|
var/lowBoundY = location.y
|
|
|
|
var/hiBoundX = location.x + rand(lX,uX)
|
|
var/hiBoundY = location.y + rand(lY,uY)
|
|
|
|
var/z = location.z
|
|
|
|
for(var/i = lowBoundX,i<=hiBoundX,i++)
|
|
for(var/j = lowBoundY,j<=hiBoundY,j++)
|
|
var/turf/T = locate(i,j,z)
|
|
if(i == lowBoundX || i == hiBoundX || j == lowBoundY || j == hiBoundY)
|
|
T.PlaceOnTop(text2path("/turf/closed/wall/vault/[type]"))
|
|
else
|
|
T.PlaceOnTop(text2path("/turf/open/floor/vault/[type]"))
|
|
|
|
qdel(src)
|