Skip to content

Commit

Permalink
Port loadout cloaks & Unathi loadout items (#1562)
Browse files Browse the repository at this point in the history
Co-authored-by: SuhEugene <[email protected]>
  • Loading branch information
UEDCommander and SuhEugene authored Dec 1, 2023
1 parent f1a65de commit 93a2025
Show file tree
Hide file tree
Showing 15 changed files with 230 additions and 3 deletions.
1 change: 1 addition & 0 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -3331,6 +3331,7 @@
#include "mods\_master_files\code\game\objects\structures\crates_lockers\closets\_closet_appearance_definitions.dm"
#include "mods\_master_files\code\modules\client\asset_cache.dm"
#include "mods\_master_files\code\modules\client\preferences_persist.dm"
#include "mods\_master_files\code\modules\clothing\spacesuits\spacesuits.dm"
#include "mods\_master_files\code\modules\culture_descriptor\_culture.dm"
#include "mods\_master_files\code\modules\culture_descriptor\culture\cultures_adherent.dm"
#include "mods\_master_files\code\modules\culture_descriptor\culture\cultures_diona.dm"
Expand Down
4 changes: 4 additions & 0 deletions code/__defines/~mods/~master_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@
// GLIDING - Start
#define DELAY2GLIDESIZE(delay) (world.icon_size / max(ceil(delay / world.tick_lag), 1))
// GLIDING - End

// LOADOUT_ITEMS - Start
#define ACCESSORY_SLOT_OVER "Over"
// LOADOUT_ITEMS - End
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
//Spacesuit
//Note: Everything in modules/clothing/spacesuits should have the entire suit grouped together.
// Meaning the the suit is defined directly after the corrisponding helmet. Just like below!

/obj/item/clothing/suit/space
valid_accessory_slots = list(ACCESSORY_SLOT_INSIGNIA, ACCESSORY_SLOT_ARMBAND, ACCESSORY_SLOT_OVER)
1 change: 1 addition & 0 deletions mods/global_modpacks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "hairs_ports/_hairs_ports.dme"
#include "sprite_accessories/_sprite_accessories.dme"
#include "jukebox_tapes/_jukebox_tapes.dme"
#include "loadout_items/_loadout_items.dme"
#include "lobbyscreen/_lobbyscreen.dme"
#include "music_player/_music_player.dme"
#include "nyc_posters/_nyc_posters.dme"
Expand Down
80 changes: 80 additions & 0 deletions mods/loadout_items/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@

#### Список PRов:

- https://github.com/SierraBay/SierraBay12/pull/1562
<!--
Ссылки на PRы, связанные с модом:
- Создание
- Большие изменения
-->

<!-- Название мода. Не важно на русском или на английском. -->
## Предметы лодаута

ID мода: LOADOUT_ITEMS
<!--
Название модпака прописными буквами, СОЕДИНЁННЫМИ_ПОДЧЁРКИВАНИЕМ,
которое ты будешь использовать для обозначения файлов.
-->

### Описание мода

Модулярно добавленные в билд предметы для лодаута.
<!--
Что он делает, что добавляет: что, куда, зачем и почему - всё здесь.
А также любая полезная информация.
-->

### Изменения *кор кода*

- Отсутствуют
<!--
Если вы редактировали какие-либо процедуры или переменные в кор коде,
они должны быть указаны здесь.
Нужно указать и файл, и процедуры/переменные.
Изменений нет - напиши "Отсутствуют"
-->

### Оверрайды

- `mods/_master_files/code/modules/clothing/spacesuits/spacesuits.dm`:
- `/obj/item/clothing/suit/space/var/valid_accessory_slots`
<!--
Если ты добавлял новый модульный оверрайд, его нужно указать здесь.
Здесь указываются оверрайды в твоём моде и папке `_master_files`
Изменений нет - напиши "Отсутствуют"
-->

### Дефайны

- `code/__defines/~mods/~master_defines.dm`:
- `ACCESSORY_SLOT_OVER`
<!--
Если требовалось добавить какие-либо дефайны, укажи файлы,
в которые ты их добавил, а также перечисли имена.
И то же самое, если ты используешь дефайны, определённые другим модом.
Не используешь - напиши "Отсутствуют"
-->

### Используемые файлы, не содержащиеся в модпаке

- Отсутствуют

<!--
Будь то немодульный файл или модульный файл, который не содержится в папке,
принадлежащей этому конкретному моду, он должен быть упомянут здесь.
Хорошими примерами являются иконки или звуки, которые используются одновременно
несколькими модулями, или что-либо подобное.
-->

### Авторы:

UEDHighCommand
<!--
Здесь находится твой никнейм
Если работал совместно - никнеймы тех, кто помогал.
В случае порта чего-либо должна быть ссылка на источник.
-->
4 changes: 4 additions & 0 deletions mods/loadout_items/_loadout_items.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/singleton/modpack/loadout_items
name = "Предметы лодаута"
desc = "Модулярно добавленные в билд предметы для лодаута."
author = "UEDHighCommand"
10 changes: 10 additions & 0 deletions mods/loadout_items/_loadout_items.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#ifndef MODPACK_LOADOUT_ITEMS
#define MODPACK_LOADOUT_ITEMS

#include "_loadout_items.dm"
#include "code/cloak.dm"
#include "code/shoes.dm"
#include "code/lists/cloaks.dm"
#include "code/lists/xenowear.dm"

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
slot_wear_suit_str = 'packs/infinity/icons/mob/onmob/onmob_accessories.dmi')
item_icons = list(
slot_wear_suit_str = 'packs/infinity/icons/mob/onmob/onmob_accessories.dmi')

sprite_sheets = list(
SPECIES_UNATHI = 'packs/infinity/icons/mob/onmob/onmob_accessories.dmi',
SPECIES_NABBER = 'packs/infinity/icons/mob/onmob/onmob_accessories.dmi'
)

var/fire_resist = T0C+100
allowed = list(/obj/item/tank/oxygen_emergency)
Expand Down
83 changes: 83 additions & 0 deletions mods/loadout_items/code/lists/cloaks.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/datum/gear/clothing/cloak_custom // common cloak
display_name = "cloak, colorable"
path = /obj/item/clothing/accessory/cloak
flags = GEAR_HAS_COLOR_SELECTION

//command cloaks

/datum/gear/clothing/cloak_captain
display_name = "cloak, command (captain)"
path = /obj/item/clothing/accessory/cloak/captain
allowed_roles = list(/datum/job/captain)

/datum/gear/clothing/cloak_hop
display_name = "cloak, command (head of personnel)"
path = /obj/item/clothing/accessory/cloak/hop
allowed_roles = list(/datum/job/hop)

/datum/gear/clothing/cloak_hos
display_name = "cloak, command (head of security)"
path = /obj/item/clothing/accessory/cloak/hos
allowed_roles = list(/datum/job/hos)

/datum/gear/clothing/cloak_cmo
display_name = "cloak, command (chief medical officer)"
path = /obj/item/clothing/accessory/cloak/cmo
allowed_roles = list(/datum/job/cmo)

/datum/gear/clothing/cloak_ce
display_name = "cloak, command (chief engineer)"
path = /obj/item/clothing/accessory/cloak/ce
allowed_roles = list(/datum/job/chief_engineer)

/datum/gear/clothing/cloak_rd
display_name = "cloak, command (research director)"
path = /obj/item/clothing/accessory/cloak/rd
allowed_roles = list(/datum/job/rd)

/datum/gear/clothing/cloak_qm
display_name = "cloak, command (quartermaster)"
path = /obj/item/clothing/accessory/cloak/qm
allowed_roles = list(/datum/job/qm)

// departaments cloaks

/datum/gear/clothing/cloak_cargo
display_name = "cloak, cargo"
path = /obj/item/clothing/accessory/cloak/cargo

/datum/gear/clothing/cloak_mining
display_name = "cloak, mining"
path = /obj/item/clothing/accessory/cloak/mining

/datum/gear/clothing/cloak_security
display_name = "cloak, security"
path = /obj/item/clothing/accessory/cloak/security

/datum/gear/clothing/cloak_service
display_name = "cloak, service"
path = /obj/item/clothing/accessory/cloak/service

/datum/gear/clothing/cloak_engineer
display_name = "cloak, engineer"
path = /obj/item/clothing/accessory/cloak/engineer

/datum/gear/clothing/cloak_atmos
display_name = "cloak, atmos"
path = /obj/item/clothing/accessory/cloak/atmos

/datum/gear/clothing/cloak_research
display_name = "cloak, science"
path = /obj/item/clothing/accessory/cloak/research

/datum/gear/clothing/cloak_medical
display_name = "cloak, medical"
path = /obj/item/clothing/accessory/cloak/medical

/datum/gear/clothing/cloak_antiq
display_name = "antiquated cape"
path = /obj/item/clothing/accessory/cloak/antiq

/datum/gear/clothing/cloak_hooded
display_name = "cloak, hooded"
path = /obj/item/clothing/accessory/cloak/hooded
16 changes: 16 additions & 0 deletions mods/loadout_items/code/lists/xenowear.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Alien clothing.

// Unathi clothing
/datum/gear/suit/unathi/footwraps
display_name = "(Unathi) big footwraps"
path = /obj/item/clothing/shoes/loadout_unathi
cost = 1
slot = slot_shoes
flags = GEAR_HAS_COLOR_SELECTION

/datum/gear/suit/unathi/sandals
display_name = "(Unathi) unathi sandals"
path = /obj/item/clothing/shoes/loadout_unathi/sandals
cost = 1
slot = slot_shoes
flags = GEAR_HAS_COLOR_SELECTION
19 changes: 19 additions & 0 deletions mods/loadout_items/code/shoes.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/obj/item/clothing/shoes/loadout_unathi
name = "big footwraps"
desc = "A large roll of treated canvas used to protect paws."
icon = 'mods/loadout_items/icons/obj_feet.dmi'
item_icons = list(slot_shoes_str = 'mods/loadout_items/icons/onmob_feet.dmi')
sprite_sheets = list(
SPECIES_UNATHI = 'mods/loadout_items/icons/onmob_feet.dmi'
)
icon_state = "unathi_footwraps"
item_state = "unathi_footwraps"
force = 0
w_class = ITEM_SIZE_SMALL
species_restricted = list(SPECIES_UNATHI)

/obj/item/clothing/shoes/loadout_unathi/sandals
name = "unathi sandals"
desc = "A pair of unathi sandals built exclusively for their paws."
icon_state = "unathi_sandals"
item_state = "unathi_sandals"
Binary file added mods/loadout_items/icons/obj_feet.dmi
Binary file not shown.
Binary file added mods/loadout_items/icons/onmob_feet.dmi
Binary file not shown.
1 change: 0 additions & 1 deletion packs/infinity/__defines/clothing.dm

This file was deleted.

3 changes: 1 addition & 2 deletions packs/infinity/_pack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define CONTENT_PACK_INFINITY

// DEFINES
#include "__defines\clothing.dm"
#include "__defines\guns.dm"

// DATUMS
Expand All @@ -23,7 +22,6 @@
#include "clothing\accessories\accessory_hand.dm"
#include "clothing\accessories\armor.dm"
#include "clothing\accessories\badge.dm"
#include "clothing\accessories\cloak.dm"
#include "clothing\accessories\collar.dm"
#include "clothing\accessories\locket_custom.dm"
#include "clothing\accessories\other.dm"
Expand Down Expand Up @@ -84,4 +82,5 @@
#include "structures\ladder_mobile.dm"
#include "structures\signs.dm"
#include "structures\table_presets.dm"

#endif

0 comments on commit 93a2025

Please sign in to comment.