From 24539931728b8d1097d72c7d23ae212633cca0ca Mon Sep 17 00:00:00 2001 From: UEDCommander Date: Fri, 2 Feb 2024 12:28:34 +0300 Subject: [PATCH 01/12] Stuff --- mods/emote_panel/code/unathi.dm | 16 ++++++ mods/global_modpacks.dm | 1 + mods/unathi/README.md | 80 ++++++++++++++++++++++++++++++ mods/unathi/_unathi.dm | 4 ++ mods/unathi/_unathi.dme | 13 +++++ mods/unathi/code/reagents.dm | 12 +++++ mods/unathi/code/species.dm | 2 + mods/unathi/code/species_attack.dm | 23 +++++++++ 8 files changed, 151 insertions(+) create mode 100644 mods/unathi/README.md create mode 100644 mods/unathi/_unathi.dm create mode 100644 mods/unathi/_unathi.dme create mode 100644 mods/unathi/code/reagents.dm create mode 100644 mods/unathi/code/species.dm create mode 100644 mods/unathi/code/species_attack.dm diff --git a/mods/emote_panel/code/unathi.dm b/mods/emote_panel/code/unathi.dm index 7e6471180c80e..e30123ccc36cc 100644 --- a/mods/emote_panel/code/unathi.dm +++ b/mods/emote_panel/code/unathi.dm @@ -14,6 +14,22 @@ /singleton/emote/audible/lizard_threat ) +/datum/species/unathi/yeosa/default_emotes = list( + /singleton/emote/human/swish, + /singleton/emote/human/wag, + /singleton/emote/human/sway, + /singleton/emote/human/qwag, + /singleton/emote/human/fastsway, + /singleton/emote/human/swag, + /singleton/emote/human/stopsway, + /singleton/emote/audible/lizard_bellow, + /singleton/emote/audible/lizard_squeal, + /singleton/emote/audible/lizard_scream, + /singleton/emote/audible/lizard_roar, + /singleton/emote/audible/lizard_rumble, + /singleton/emote/audible/lizard_threat +) + /singleton/emote/audible/lizard_bellow key = "bellow" emote_message_3p_target = "USER утробно рычит на TARGET!" diff --git a/mods/global_modpacks.dm b/mods/global_modpacks.dm index 53ddea1452887..3cf61c81b1ef6 100644 --- a/mods/global_modpacks.dm +++ b/mods/global_modpacks.dm @@ -20,6 +20,7 @@ #include "nyc_posters/_nyc_posters.dme" #include "ssinput/_ssinput.dme" #include "statusbar/_statusbar.dme" +#include "unathi/_unathi.dme" #include "utf8/_utf8.dme" #include "../packs/sierra-tweaks/_pack.dm" diff --git a/mods/unathi/README.md b/mods/unathi/README.md new file mode 100644 index 0000000000000..783fd5799c56d --- /dev/null +++ b/mods/unathi/README.md @@ -0,0 +1,80 @@ + +#### Список PRов: + +- https://github.com/SierraBay/SierraBay12/pull/1442 + + + +## Unathi + +ID мода: UNATHI + + +### Описание мода + +Мод включает особые механики рас унати и йоза'унати, доступные на билде Infinity. +- Изменена механика ядовитого укуса йоза'унати - теперь вводит реагент яда вместо нанесения токсичного урона; +- Возвращена механика переключения регенерации унати. + + +### Изменения *кор кода* + +- `code/game/objects/auras/regenerating_aura.dm`: + - `/obj/aura/regenerating/human/unathi/can_toggle()` + + +### Оверрайды + +Отсутствуют + + +### Дефайны + +Отсутствуют + + +### Используемые файлы, не содержащиеся в модпаке + +Отсутствуют + + +### Авторы: + +UEDHighCommand + diff --git a/mods/unathi/_unathi.dm b/mods/unathi/_unathi.dm new file mode 100644 index 0000000000000..cf75927f62d47 --- /dev/null +++ b/mods/unathi/_unathi.dm @@ -0,0 +1,4 @@ +/singleton/modpack/unathi + name = "Унати" + desc = "Мод включает особые механики рас унати и йоза'унати, доступные на билде Infinity" + author = "UEDHighCommand" diff --git a/mods/unathi/_unathi.dme b/mods/unathi/_unathi.dme new file mode 100644 index 0000000000000..011dd4d4a6d20 --- /dev/null +++ b/mods/unathi/_unathi.dme @@ -0,0 +1,13 @@ +#ifndef UNATHI +#define UNATHI + +#include "_unathi.dm" + +// Далее просто включай свой код +// #include "code/something.dm" + +#include "code/reagents.dm" +#include "code/species.dm" +#include "code/species_attack.dm" + +#endif diff --git a/mods/unathi/code/reagents.dm b/mods/unathi/code/reagents.dm new file mode 100644 index 0000000000000..c1bf877b12a55 --- /dev/null +++ b/mods/unathi/code/reagents.dm @@ -0,0 +1,12 @@ +/datum/reagent/toxin/yeosvenom + name = "Esh Hashaar Haashane" + description = "A non-lethal toxin produced by Yeosa'Unathi" + taste_description = "absolutely vile" + color = "#91d895" + target_organ = BP_LIVER + strength = 1 + +/datum/reagent/toxin/yeosvenom/affect_blood(var/mob/living/carbon/M, var/alien, var/removed) + if(prob(volume*10)) + M.confused = max(M.confused, 10) + ..() diff --git a/mods/unathi/code/species.dm b/mods/unathi/code/species.dm new file mode 100644 index 0000000000000..1610329786dbd --- /dev/null +++ b/mods/unathi/code/species.dm @@ -0,0 +1,2 @@ +/datum/species/unathi/yeosa/New() + unarmed_types ^= list(/datum/unarmed_attack/bite/venom, /datum/unarmed_attack/bite/venom/yeosa) diff --git a/mods/unathi/code/species_attack.dm b/mods/unathi/code/species_attack.dm new file mode 100644 index 0000000000000..c2ecd21ea591a --- /dev/null +++ b/mods/unathi/code/species_attack.dm @@ -0,0 +1,23 @@ +/datum/unarmed_attack/bite/venom/yeosa + var/poison_per_bite = 8 + var/poison_type = /datum/reagent/toxin/yeosvenom + attack_verb = list("bit", "sank their fangs into") + attack_sound = 'sound/weapons/bite.ogg' + attack_name = "venomous bite 2" + damage = 1 + delay = 30 + +/datum/unarmed_attack/bite/venom/yeosa/apply_effects(var/mob/living/carbon/human/user,var/mob/living/carbon/human/target,var/armour,var/attack_damage,var/zone) + ..() + if(istype(src) && target && ishuman(target)) + var/mob/living/carbon/human/H = target + var/obj/item/clothing/suit/space/S = H.get_covering_equipped_item_by_zone(zone) + if(istype(S) && !length(S.breaches)) + return + if(target.reagents) + target.reagents.add_reagent(src.poison_type, rand(0.875 * src.poison_per_bite, src.poison_per_bite)) + if(prob(src.poison_per_bite)) + to_chat(H, SPAN_WARNING("You feel a tiny prick.")) + +/datum/unarmed_attack/bite/venom/yeosa/get_damage_type() + return DAMAGE_BRUTE From b5f18c61c6100ab3dc19d6d77d3a21f3f1dc00d3 Mon Sep 17 00:00:00 2001 From: UEDCommander Date: Fri, 2 Feb 2024 12:49:15 +0300 Subject: [PATCH 02/12] Readme updates & fixes --- mods/emote_panel/README.md | 1 + mods/unathi/README.md | 2 +- mods/unathi/code/reagents.dm | 4 ++-- mods/unathi/code/species_attack.dm | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mods/emote_panel/README.md b/mods/emote_panel/README.md index 9803bc1469749..e807872d26fc7 100644 --- a/mods/emote_panel/README.md +++ b/mods/emote_panel/README.md @@ -3,6 +3,7 @@ - https://github.com/SierraBay/SierraBay12/pull/1087 - https://github.com/SierraBay/SierraBay12/pull/1815 +- https://github.com/SierraBay/SierraBay12/pull/1856