[MIRROR] Tram v6/Transport Subsystem [MDB IGNORE] (#24399)

* Tram v6/Transport Subsystem

* Update icon_smoothing.dm

* Update utility.dm

* defines/icon

* Update airlock.dm

* Update door.dm

* Update airlock.dm

* Update airlock.dm

---------

Co-authored-by: lessthanthree <83487515+lessthnthree@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-10-18 00:16:46 +02:00
committed by GitHub
parent 79fbc17625
commit 7cf7be4b7b
122 changed files with 8333 additions and 5350 deletions
+13 -7
View File
@@ -493,19 +493,15 @@
builder.balloon_alert(builder, "won't fit here!")
return FALSE
if(recipe.on_tram)
if(!locate(/obj/structure/industrial_lift/tram) in dest_turf)
builder.balloon_alert(builder, "must be made on a tram!")
return FALSE
if(recipe.on_solid_ground)
if(isclosedturf(dest_turf))
builder.balloon_alert(builder, "cannot be made on a wall!")
return FALSE
if(is_type_in_typecache(dest_turf, GLOB.turfs_without_ground))
builder.balloon_alert(builder, "must be made on solid ground!")
return FALSE
if(!locate(/obj/structure/thermoplastic) in dest_turf) // for tram construction
builder.balloon_alert(builder, "must be made on solid ground!")
return FALSE
if(recipe.check_density)
for(var/obj/object in dest_turf)
@@ -527,6 +523,16 @@
builder.balloon_alert(builder, "can't be near another!")
return FALSE
if(recipe.placement_checks & STACK_CHECK_TRAM_FORBIDDEN)
if(locate(/obj/structure/transport/linear/tram) in dest_turf || locate(/obj/structure/thermoplastic) in dest_turf)
builder.balloon_alert(builder, "can't be on tram!")
return FALSE
if(recipe.placement_checks & STACK_CHECK_TRAM_EXCLUSIVE)
if(!locate(/obj/structure/transport/linear/tram) in dest_turf)
builder.balloon_alert(builder, "must be made on a tram!")
return FALSE
return TRUE
/obj/item/stack/use(used, transfer = FALSE, check = TRUE) // return 0 = borked; return 1 = had enough