From b54556f3e4bf47b7c7296a2b1b5f69fd57e70af4 Mon Sep 17 00:00:00 2001 From: Baneuus <66535081+Baneuus@users.noreply.github.com> Date: Sun, 3 Nov 2024 04:32:37 +0300 Subject: [PATCH 1/3] resomi seclenses fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Теперь секхуды резомов работают как секхуды --- mods/resomi/code/clothing/glasses.dm | 2 +- mods/resomi/code/datum/gear.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/resomi/code/clothing/glasses.dm b/mods/resomi/code/clothing/glasses.dm index ee53db0044a1d..99ba972a7ee5d 100644 --- a/mods/resomi/code/clothing/glasses.dm +++ b/mods/resomi/code/clothing/glasses.dm @@ -9,7 +9,7 @@ flash_protection = FLASH_PROTECTION_MODERATE body_parts_covered = 0 -/obj/item/clothing/glasses/sunglasses/sechud/lenses +/obj/item/clothing/glasses/hud/security/lenses name = "small sechud lenses" desc = "Lenses with a HUD. This one has a sechud." item_icons = list(slot_glasses_str = 'mods/resomi/icons/clothing/onmob_eyes_resomi.dmi') diff --git a/mods/resomi/code/datum/gear.dm b/mods/resomi/code/datum/gear.dm index c4b1542af62a5..10c725039e56f 100644 --- a/mods/resomi/code/datum/gear.dm +++ b/mods/resomi/code/datum/gear.dm @@ -88,7 +88,7 @@ /datum/gear/eyes/security/resomi display_name = "(Resomi) sun sechud lenses" - path = /obj/item/clothing/glasses/sunglasses/sechud/lenses + path = /obj/item/clothing/glasses/hud/security/lenses sort_category = "Xenowear" whitelisted = list(SPECIES_RESOMI) From 7a94f3e87f6936c4a88e4205612e94653185754b Mon Sep 17 00:00:00 2001 From: Baneuus <66535081+Baneuus@users.noreply.github.com> Date: Tue, 5 Nov 2024 01:30:24 +0300 Subject: [PATCH 2/3] Exosuit skillpoint raise MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Мод для манипуляции со скиллпоинтами и повышение стоимости очков для мехов. --- .../code/modules/mob/skills/skill.dm | 19 +++++ .../maps/sierra/job/jobs_research.dm | 56 +++++++++++++ mods/global_modpacks.dm | 1 + mods/skilltweak/README.md | 78 +++++++++++++++++++ mods/skilltweak/_skilltweak.dm | 4 + mods/skilltweak/_skilltweak.dme | 9 +++ mods/skilltweak/code/jobs_research.dm | 56 +++++++++++++ mods/skilltweak/code/skill.dm | 19 +++++ 8 files changed, 242 insertions(+) create mode 100644 mods/_master_files/code/modules/mob/skills/skill.dm create mode 100644 mods/_master_files/maps/sierra/job/jobs_research.dm create mode 100644 mods/skilltweak/README.md create mode 100644 mods/skilltweak/_skilltweak.dm create mode 100644 mods/skilltweak/_skilltweak.dme create mode 100644 mods/skilltweak/code/jobs_research.dm create mode 100644 mods/skilltweak/code/skill.dm diff --git a/mods/_master_files/code/modules/mob/skills/skill.dm b/mods/_master_files/code/modules/mob/skills/skill.dm new file mode 100644 index 0000000000000..1888660af2e8b --- /dev/null +++ b/mods/_master_files/code/modules/mob/skills/skill.dm @@ -0,0 +1,19 @@ +/singleton/hierarchy/skill/general/EVA/mech + ID = "exosuit" + name = "Exosuit Operation" + desc = "Allows you to operate exosuits well." + levels = list("Untrained" = "You are unfamiliar with exosuit controls, and if you attempt to use them you are liable to make mistakes.", + "Trained" = "You are proficient in exosuit operation and safety, and can use them without penalties.") + default_max = SKILL_BASIC + difficulty = SKILL_AVERAGE + +/singleton/hierarchy/skill/general/EVA/mech/Initialize() + . = ..() + prerequisites = null + +/singleton/hierarchy/skill/general/EVA/mech/get_cost(level) + switch(level) + if(SKILL_BASIC) + return 3*difficulty + else + return 0 diff --git a/mods/_master_files/maps/sierra/job/jobs_research.dm b/mods/_master_files/maps/sierra/job/jobs_research.dm new file mode 100644 index 0000000000000..4750c1735adfa --- /dev/null +++ b/mods/_master_files/maps/sierra/job/jobs_research.dm @@ -0,0 +1,56 @@ +/datum/job/roboticist + title = "Roboticist" + department = "Научный" + department_flag = SCI + + total_positions = 2 + spawn_positions = 2 + supervisors = "Директору Исследований и Старшему Исследователю" + selection_color = "#633d63" + economic_power = 6 + minimum_character_age = list(SPECIES_HUMAN = 25) + ideal_character_age = 27 + alt_titles = list( + "Biomechanical Engineer", + "Exosuit Technician", + ) + outfit_type = /singleton/hierarchy/outfit/job/sierra/crew/research/roboticist + allowed_branches = list( + /datum/mil_branch/employee, + /datum/mil_branch/contractor + ) + allowed_ranks = list( + /datum/mil_rank/civ/nt, + /datum/mil_rank/civ/contractor + ) + min_skill = list( + SKILL_COMPUTER = SKILL_TRAINED, + SKILL_DEVICES = SKILL_TRAINED, + SKILL_ANATOMY = SKILL_TRAINED, + SKILL_MEDICAL = SKILL_BASIC, + SKILL_ELECTRICAL = SKILL_TRAINED + ) + + max_skill = list( + SKILL_CONSTRUCTION = SKILL_MAX, + SKILL_ELECTRICAL = SKILL_MAX, + SKILL_ATMOS = SKILL_EXPERIENCED, + SKILL_ENGINES = SKILL_EXPERIENCED, + SKILL_DEVICES = SKILL_MAX, + SKILL_MEDICAL = SKILL_EXPERIENCED, + SKILL_ANATOMY = SKILL_EXPERIENCED + ) + + skill_points = 22 + + access = list( + access_robotics, + access_research, + access_tech_storage, + access_research_storage + ) + + +/datum/job/roboticist/get_description_blurb() + return "Корабельный роботехник, в первую очередь, занимается производством и обслуживанием киборгов и роботов корабля.\ + Он также может быть призван собирать различные экзокостюмы, ремонтировать протезированные конечности у членов экипажа и пересаживать чей-то мозг в корпус киборга или полностью синтетический юнит." diff --git a/mods/global_modpacks.dm b/mods/global_modpacks.dm index ff287838b85d8..6b7180d87a29c 100644 --- a/mods/global_modpacks.dm +++ b/mods/global_modpacks.dm @@ -40,5 +40,6 @@ #include "overmap/_overmap.dme" #include "ooc_notes/_ooc_notes.dme" #include "failu_skrell_clothes/_failu_skrell_clothes.dme" +#include "skilltweak/_skilltweak.dme" #include "../packs/sierra-tweaks/_pack.dm" diff --git a/mods/skilltweak/README.md b/mods/skilltweak/README.md new file mode 100644 index 0000000000000..1ac2ac6514e02 --- /dev/null +++ b/mods/skilltweak/README.md @@ -0,0 +1,78 @@ + +#### Список PRов: + +- https://github.com/SierraBay/SierraBay12/pull/##### + + + +## Мод-пример + +ID мода: SKILLTWEAK + + +### Описание мода + +Этот мод необходим для введения корректировок в навыки без вмешательства в коркод. + + +### Изменения *кор кода* + +Отсутствуют + + +### Оверрайды + +- `code/modules/mob/skills/skill.dm` +- `maps\sierra\job\jobs_research.dm` + + +### Дефайны + +Отсутствуют + + +### Используемые файлы, не содержащиеся в модпаке + +Отсутствуют + + +### Авторы: + +Baneuus + diff --git a/mods/skilltweak/_skilltweak.dm b/mods/skilltweak/_skilltweak.dm new file mode 100644 index 0000000000000..1db71f15c195b --- /dev/null +++ b/mods/skilltweak/_skilltweak.dm @@ -0,0 +1,4 @@ +/singleton/modpack/skilltweak + name = "Навыки" + desc = "Мод, который отвечает за распределение навыков и их стоимость." + author = "Baneuus" diff --git a/mods/skilltweak/_skilltweak.dme b/mods/skilltweak/_skilltweak.dme new file mode 100644 index 0000000000000..8cdd19483bfb0 --- /dev/null +++ b/mods/skilltweak/_skilltweak.dme @@ -0,0 +1,9 @@ +#ifndef MODPACK_SKILLTWEAK +#define MODPACK_SKILLTWEAK + +#include "_skilltweak.dm" + +#include "code/skill.dm" +#include "code/jobs_research.dm" + +#endif diff --git a/mods/skilltweak/code/jobs_research.dm b/mods/skilltweak/code/jobs_research.dm new file mode 100644 index 0000000000000..4750c1735adfa --- /dev/null +++ b/mods/skilltweak/code/jobs_research.dm @@ -0,0 +1,56 @@ +/datum/job/roboticist + title = "Roboticist" + department = "Научный" + department_flag = SCI + + total_positions = 2 + spawn_positions = 2 + supervisors = "Директору Исследований и Старшему Исследователю" + selection_color = "#633d63" + economic_power = 6 + minimum_character_age = list(SPECIES_HUMAN = 25) + ideal_character_age = 27 + alt_titles = list( + "Biomechanical Engineer", + "Exosuit Technician", + ) + outfit_type = /singleton/hierarchy/outfit/job/sierra/crew/research/roboticist + allowed_branches = list( + /datum/mil_branch/employee, + /datum/mil_branch/contractor + ) + allowed_ranks = list( + /datum/mil_rank/civ/nt, + /datum/mil_rank/civ/contractor + ) + min_skill = list( + SKILL_COMPUTER = SKILL_TRAINED, + SKILL_DEVICES = SKILL_TRAINED, + SKILL_ANATOMY = SKILL_TRAINED, + SKILL_MEDICAL = SKILL_BASIC, + SKILL_ELECTRICAL = SKILL_TRAINED + ) + + max_skill = list( + SKILL_CONSTRUCTION = SKILL_MAX, + SKILL_ELECTRICAL = SKILL_MAX, + SKILL_ATMOS = SKILL_EXPERIENCED, + SKILL_ENGINES = SKILL_EXPERIENCED, + SKILL_DEVICES = SKILL_MAX, + SKILL_MEDICAL = SKILL_EXPERIENCED, + SKILL_ANATOMY = SKILL_EXPERIENCED + ) + + skill_points = 22 + + access = list( + access_robotics, + access_research, + access_tech_storage, + access_research_storage + ) + + +/datum/job/roboticist/get_description_blurb() + return "Корабельный роботехник, в первую очередь, занимается производством и обслуживанием киборгов и роботов корабля.\ + Он также может быть призван собирать различные экзокостюмы, ремонтировать протезированные конечности у членов экипажа и пересаживать чей-то мозг в корпус киборга или полностью синтетический юнит." diff --git a/mods/skilltweak/code/skill.dm b/mods/skilltweak/code/skill.dm new file mode 100644 index 0000000000000..1888660af2e8b --- /dev/null +++ b/mods/skilltweak/code/skill.dm @@ -0,0 +1,19 @@ +/singleton/hierarchy/skill/general/EVA/mech + ID = "exosuit" + name = "Exosuit Operation" + desc = "Allows you to operate exosuits well." + levels = list("Untrained" = "You are unfamiliar with exosuit controls, and if you attempt to use them you are liable to make mistakes.", + "Trained" = "You are proficient in exosuit operation and safety, and can use them without penalties.") + default_max = SKILL_BASIC + difficulty = SKILL_AVERAGE + +/singleton/hierarchy/skill/general/EVA/mech/Initialize() + . = ..() + prerequisites = null + +/singleton/hierarchy/skill/general/EVA/mech/get_cost(level) + switch(level) + if(SKILL_BASIC) + return 3*difficulty + else + return 0 From 55d002e121d05223ee6be15ed9941d7063da8687 Mon Sep 17 00:00:00 2001 From: Baneuus <66535081+Baneuus@users.noreply.github.com> Date: Tue, 5 Nov 2024 01:52:46 +0300 Subject: [PATCH 3/3] MechFix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Чёто сломалось чёто починил --- .../maps/sierra/job/jobs_research.dm | 48 ------------------- mods/skilltweak/code/jobs_research.dm | 48 ------------------- 2 files changed, 96 deletions(-) diff --git a/mods/_master_files/maps/sierra/job/jobs_research.dm b/mods/_master_files/maps/sierra/job/jobs_research.dm index 4750c1735adfa..891b7bed32ef3 100644 --- a/mods/_master_files/maps/sierra/job/jobs_research.dm +++ b/mods/_master_files/maps/sierra/job/jobs_research.dm @@ -1,28 +1,4 @@ /datum/job/roboticist - title = "Roboticist" - department = "Научный" - department_flag = SCI - - total_positions = 2 - spawn_positions = 2 - supervisors = "Директору Исследований и Старшему Исследователю" - selection_color = "#633d63" - economic_power = 6 - minimum_character_age = list(SPECIES_HUMAN = 25) - ideal_character_age = 27 - alt_titles = list( - "Biomechanical Engineer", - "Exosuit Technician", - ) - outfit_type = /singleton/hierarchy/outfit/job/sierra/crew/research/roboticist - allowed_branches = list( - /datum/mil_branch/employee, - /datum/mil_branch/contractor - ) - allowed_ranks = list( - /datum/mil_rank/civ/nt, - /datum/mil_rank/civ/contractor - ) min_skill = list( SKILL_COMPUTER = SKILL_TRAINED, SKILL_DEVICES = SKILL_TRAINED, @@ -30,27 +6,3 @@ SKILL_MEDICAL = SKILL_BASIC, SKILL_ELECTRICAL = SKILL_TRAINED ) - - max_skill = list( - SKILL_CONSTRUCTION = SKILL_MAX, - SKILL_ELECTRICAL = SKILL_MAX, - SKILL_ATMOS = SKILL_EXPERIENCED, - SKILL_ENGINES = SKILL_EXPERIENCED, - SKILL_DEVICES = SKILL_MAX, - SKILL_MEDICAL = SKILL_EXPERIENCED, - SKILL_ANATOMY = SKILL_EXPERIENCED - ) - - skill_points = 22 - - access = list( - access_robotics, - access_research, - access_tech_storage, - access_research_storage - ) - - -/datum/job/roboticist/get_description_blurb() - return "Корабельный роботехник, в первую очередь, занимается производством и обслуживанием киборгов и роботов корабля.\ - Он также может быть призван собирать различные экзокостюмы, ремонтировать протезированные конечности у членов экипажа и пересаживать чей-то мозг в корпус киборга или полностью синтетический юнит." diff --git a/mods/skilltweak/code/jobs_research.dm b/mods/skilltweak/code/jobs_research.dm index 4750c1735adfa..891b7bed32ef3 100644 --- a/mods/skilltweak/code/jobs_research.dm +++ b/mods/skilltweak/code/jobs_research.dm @@ -1,28 +1,4 @@ /datum/job/roboticist - title = "Roboticist" - department = "Научный" - department_flag = SCI - - total_positions = 2 - spawn_positions = 2 - supervisors = "Директору Исследований и Старшему Исследователю" - selection_color = "#633d63" - economic_power = 6 - minimum_character_age = list(SPECIES_HUMAN = 25) - ideal_character_age = 27 - alt_titles = list( - "Biomechanical Engineer", - "Exosuit Technician", - ) - outfit_type = /singleton/hierarchy/outfit/job/sierra/crew/research/roboticist - allowed_branches = list( - /datum/mil_branch/employee, - /datum/mil_branch/contractor - ) - allowed_ranks = list( - /datum/mil_rank/civ/nt, - /datum/mil_rank/civ/contractor - ) min_skill = list( SKILL_COMPUTER = SKILL_TRAINED, SKILL_DEVICES = SKILL_TRAINED, @@ -30,27 +6,3 @@ SKILL_MEDICAL = SKILL_BASIC, SKILL_ELECTRICAL = SKILL_TRAINED ) - - max_skill = list( - SKILL_CONSTRUCTION = SKILL_MAX, - SKILL_ELECTRICAL = SKILL_MAX, - SKILL_ATMOS = SKILL_EXPERIENCED, - SKILL_ENGINES = SKILL_EXPERIENCED, - SKILL_DEVICES = SKILL_MAX, - SKILL_MEDICAL = SKILL_EXPERIENCED, - SKILL_ANATOMY = SKILL_EXPERIENCED - ) - - skill_points = 22 - - access = list( - access_robotics, - access_research, - access_tech_storage, - access_research_storage - ) - - -/datum/job/roboticist/get_description_blurb() - return "Корабельный роботехник, в первую очередь, занимается производством и обслуживанием киборгов и роботов корабля.\ - Он также может быть призван собирать различные экзокостюмы, ремонтировать протезированные конечности у членов экипажа и пересаживать чей-то мозг в корпус киборга или полностью синтетический юнит."