Skip to content

Commit

Permalink
Feat: Yeosa Unathi's poison (#725)
Browse files Browse the repository at this point in the history
# Описание
#541
Унатхам ядовитым, добавляет абилку сцеживания 8 единиц яда, в емкость в
активной руке. КД 30 секунд. Потребляет 25 нутримента и 15 жажды. Так же
Йоза теперь имеют иммунитет к своему яду

## Changelog

<!-- С помощью этого раздела можно подготовить список изменений, которые
попадут в игровой чейндж-лог. --->
<!-- Вам нужно указать префикс изменения (Он идёт до двоеточия) и дать
описание, как на примере. --->
<!-- Префиксы можно использовать несколько раз. --->
<!-- Если Вы не планируете добавлять записи в чейндж-лог - просто
удалите из пулл-реквеста этот раздел. --->

:cl:
rscadd: Унатхи Йоза могут сцеживать яд. 
/:cl:
  • Loading branch information
Lexanx authored Feb 23, 2024
1 parent 685f753 commit 3b8d1c4
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/human/human_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,6 @@

var/list/descriptors

var/last_smelt = 0
var/last_smelt = 0

var/venom_cooldown = 0 // used for Unathi
22 changes: 22 additions & 0 deletions code/modules/mob/living/carbon/human/human_powers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,25 @@

var/new_skin = input(usr, "Choose your new skin colour: ", "Change Colour", rgb(r_skin, g_skin, b_skin)) as color|null
change_skin_color(hex2num(copytext(new_skin, 2, 4)), hex2num(copytext(new_skin, 4, 6)), hex2num(copytext(new_skin, 6, 8)))

/mob/living/carbon/human/unathi/yeosa/proc/decant_venom()
set category = "Abilities"
set name = "Decant Venom"
set desc = ""
var/obj/item/target = usr.get_active_hand()
var/poison_type = /datum/reagent/toxin/yeosvenom


if(venom_cooldown > world.time)
to_chat(usr, SPAN_WARNING("Your venom glands are too exhausted, it will take some time before you can decant your innate venom again."))
return
if(istype(target, /obj/item/reagent_containers/))
if(target.reagents)
target.reagents.add_reagent(poison_type, 8)
src.adjust_nutrition(-25)
src.adjust_hydration(-15)
usr.visible_message(
SPAN_NOTICE("\The [usr] sticks their fangs into the side of the [target], dripping thick, green-ish substance into the container."),
SPAN_NOTICE("You stick your fangs into the side of the \the [target], allowing some of your innate venom to drip into the container.")
)
venom_cooldown = world.time + (30 SECONDS)
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
strength = 1

/datum/reagent/toxin/yeosvenom/affect_blood(var/mob/living/carbon/M, var/alien, var/removed)
if(M.is_species(SPECIES_YEOSA))
return // Yeosa is immune to it's own venom

if(prob(volume*10))
M.confused = max(M.confused, 10)
..()
Expand Down
4 changes: 4 additions & 0 deletions code/modules/species/station/lizard_subspecies.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
/obj/aura/regenerating/human/unathi/yeosa
)

inherent_verbs = list(
/mob/living/carbon/human/proc/diona_heal_toggle, /mob/living/carbon/human/unathi/yeosa/proc/decant_venom
)

additional_available_cultural_info = list(
TAG_CULTURE = list(
CULTURE_UNATHI_YEOSA_ABYSS,
Expand Down

0 comments on commit 3b8d1c4

Please sign in to comment.