forked from ss220club/BandaStation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] Material pouch port (ss220club#447)
## About The Pull Request Портирует подсумок для материалов с парадиза. ## Why It's Good For The Game Портирование фич с парадиза нада. ## Изображение изменений ![image](https://github.com/user-attachments/assets/61b6a2da-3e6c-4c40-800e-0fbedaee4ac8) ## Changelog :cl: add: Добавлен подсумок для материалов /:cl:
- Loading branch information
1 parent
23ed52b
commit da3f140
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#include "_objects.dm" | ||
|
||
#include "code/material_pouch.dm" | ||
#include "code/structures/posters.dm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/obj/item/storage/bag/material_pouch | ||
name = "material pouch" | ||
desc = "Сумка для хранения листов материалов." | ||
icon = 'modular_bandastation/objects/icons/material_pouch.dmi' | ||
icon_state = "materialpouch" | ||
w_class = WEIGHT_CLASS_BULKY | ||
resistance_flags = FLAMMABLE | ||
slot_flags = ITEM_SLOT_POCKETS | ITEM_SLOT_BELT | ||
var/static/list/matpouch_holdables = list( | ||
/obj/item/stack/sheet/iron, | ||
/obj/item/stack/sheet/plasteel, | ||
/obj/item/stack/sheet/plasmaglass, | ||
/obj/item/stack/sheet/bluespace_crystal, | ||
/obj/item/stack/sheet/bronze, | ||
/obj/item/stack/sheet/glass, | ||
/obj/item/stack/sheet/plasmarglass, | ||
/obj/item/stack/sheet/titaniumglass, | ||
/obj/item/stack/sheet/plastic, | ||
/obj/item/stack/sheet/rglass, | ||
/obj/item/stack/sheet/mineral/wood, | ||
/obj/item/stack/sheet/mineral/adamantine, | ||
/obj/item/stack/sheet/mineral/bamboo, | ||
/obj/item/stack/sheet/mineral/bananium, | ||
/obj/item/stack/sheet/mineral/diamond, | ||
/obj/item/stack/sheet/mineral/gold, | ||
/obj/item/stack/sheet/mineral/metal_hydrogen, | ||
/obj/item/stack/sheet/mineral/uranium, | ||
/obj/item/stack/sheet/mineral/silver, | ||
/obj/item/stack/sheet/mineral/titanium, | ||
) | ||
|
||
/obj/item/storage/bag/material_pouch/Initialize(mapload) | ||
. = ..() | ||
atom_storage.max_specific_storage = WEIGHT_CLASS_NORMAL | ||
atom_storage.max_total_storage = INFINITY | ||
atom_storage.max_slots = 2 | ||
atom_storage.numerical_stacking = TRUE | ||
atom_storage.set_holdable(matpouch_holdables) | ||
|
||
/obj/machinery/vending/engivend/build_inventories(start_empty) | ||
premium += list( | ||
/obj/item/storage/bag/material_pouch = 3 | ||
) | ||
. = ..() |
Binary file not shown.