storage and inventory toolshed commands (#39046)

* First commit

* CommandImplementation on singletons is die, a la moony

* Fix duplicated thingy because yes

* Prototypes, bugfixes, refactoring oh my

* Remember to actually stage your ftl changes next time, leaf
This commit is contained in:
UpAndLeaves
2025-09-11 23:07:37 +01:00
committed by GitHub
parent bb970970c9
commit 1245487c9a
3 changed files with 280 additions and 0 deletions

View File

@@ -106,6 +106,30 @@ command-description-scale-multiplyvector =
Multiply an entity's sprite size with a certain 2d vector (without changing its fixture).
command-description-scale-multiplywithfixture =
Multiply an entity's sprite size with a certain factor (including its fixture).
command-description-storage-fasttake =
Takes the most recently placed item from the piped storage entity.
command-description-storage-insert =
Inserts the piped entity into the given storage entity.
command-description-inventory-getflags =
Gets all entities in slots on the piped inventory entity matching a certain slot flag.
command-description-inventory-getnamed =
Gets all entities in slots on the piped inventory entity matching a certain slot name.
command-description-inventory-forceput =
Puts a given entity on the first piped entity that has a slot matching the given flag, deleting any item previously in that slot.
command-description-inventory-forcespawn =
Spawns a given prototype on the first piped entity that has a slot matching the given flag, deleting any item previously in that slot.
command-description-inventory-put =
Puts a given entity on the first piped entity that has a slot matching the given flag, unequiping any item previously in that slot.
command-description-inventory-spawn =
Spawns a given prototype on the first piped entity that has a slot matching the given flag, unequiping any item previously in that slot.
command-description-inventory-tryput =
Tries to put a given entity on the first piped entity that has a slot matching the given flag, failing if any item is in currently in that slot.
command-description-inventory-tryspawn =
Tries to spawn a given prototype on the first piped entity that has a slot matching the given flag, failing if any item is in currently in that slot.
command-description-inventory-ensure =
Puts a given entity on the first piped entity that has a slot matching the given flag if none exists, passing through the UID of whatever is in the slot by the end.
command-description-inventory-ensurespawn =
Spawns a given prototype on the first piped entity that has a slot matching the given flag if none exists, passing through the UID of whatever is in the slot by the end.
command-description-dynamicrule-list =
Lists all currently active dynamic rules, usually this is just one.
command-description-dynamicrule-get =