Skip to content

Commit

Permalink
[FEAT] Material pouch port (ss220club#447)
Browse files Browse the repository at this point in the history
## 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
Chorden523 authored Jul 22, 2024
1 parent 23ed52b commit da3f140
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions modular_bandastation/objects/_objects.dme
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"
44 changes: 44 additions & 0 deletions modular_bandastation/objects/code/material_pouch.dm
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.

0 comments on commit da3f140

Please sign in to comment.