mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-22 09:36:39 +01:00
- all cells in the game are now small, medium, large - super, hyper capacity cells, device, and weapon cells are all removed - cells now have standardized variants, some of which are printable by R&D - energy weapons rebalanced - **advanced energy guns and stun revolvers removed** - use the new modular weapon system and microfission cells. --------- Co-authored-by: silicons <silicons@silicons.dev>
27 lines
850 B
Plaintext
27 lines
850 B
Plaintext
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2024 Citadel Station Developers *//
|
|
|
|
/**
|
|
* auto-loads sheets into sheet silos
|
|
*/
|
|
/obj/machinery/sheet_silo_loader
|
|
name = "materials silo loader"
|
|
desc = "An autoloader for a materials silo."
|
|
icon = 'icons/modules/mining/machinery/sheet_silo_loader.dmi'
|
|
icon_state = "loader"
|
|
anchored = TRUE
|
|
integrity_flags = INTEGRITY_INDESTRUCTIBLE
|
|
|
|
/obj/machinery/sheet_silo_loader/process(delta_time)
|
|
// todo: lazy-ticking
|
|
var/list/obj/item/stack/material/stacks = list()
|
|
for(var/obj/item/stack/material/matstack in loc)
|
|
stacks += matstack
|
|
if(!length(stacks))
|
|
return
|
|
var/obj/machinery/sheet_silo/silo = locate() in get_step(src, dir)
|
|
if(isnull(silo))
|
|
return
|
|
for(var/obj/item/stack/material/matstack as anything in stacks)
|
|
silo.take_sheets(matstack)
|