Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kvas #301

Merged
merged 12 commits into from
Jun 30, 2024
Merged

Kvas #301

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Kvas
HardexZ committed Jun 14, 2024
commit 1a08fca5e7e729d95a79a66a1104afb93e02fac6
4 changes: 4 additions & 0 deletions modular_bandastation/drinks/_drinks.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/datum/modpack/drinks
name = "Напитки"
desc = "Добавляет новые напитки"
author = "Massmeta(code+sprite), HardexZ(модуль)"
14 changes: 14 additions & 0 deletions modular_bandastation/drinks/_drinks.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "_drinks.dm"

#include "code/drinks.dm"
// BEGIN_INTERNALS
// END_INTERNALS
// BEGIN_FILE_DIR
#define FILE_DIR .
// END_FILE_DIR
// BEGIN_PREFERENCES
// END_PREFERENCES
// BEGIN_INCLUDE
#include "_drinks.dm"
#include "code\drinks.dm"
// END_INCLUDE
31 changes: 31 additions & 0 deletions modular_bandastation/drinks/code/drinks.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/datum/reagent/consumable/kvass
name = "Квас"
description = "Напиток, приготовленный путем брожения хлеба, ржи или ячменя, который обладает освежающим и слегка кисловатым вкусом."
color = "#351300"
taste_description = "приятную кислинку с легкой сладостью и хлебным послевкусием."

/datum/glass_style/drinking_glass/kvass
required_drink_type = /datum/reagent/consumable/kvass
name = "Стакан кваса"
desc = "Стакан с квасом."
icon = 'modular_bandastation/drinks/icons/drinks.dmi'
icon_state = "kvass"

/datum/reagent/consumable/kvass/on_mob_life(mob/living/carbon/affected_mob, delta_time, times_fired)
affected_mob.adjustToxLoss(-0.5, FALSE, required_biotype = affected_biotype)
affected_mob.adjustOrganLoss(ORGAN_SLOT_LIVER, -0.5 * REM * delta_time, required_organ_flag = ORGAN_ORGANIC)
for(var/datum/reagent/toxin/R in affected_mob.reagents.reagent_list)
affected_mob.reagents.remove_reagent(R.type, 2.5 * REM * delta_time)
..()

/datum/export/large/reagent_dispenser/kvass
unit_name = "kvasstank"
export_types = list(/obj/structure/reagent_dispensers/kvasstank)

/obj/structure/reagent_dispensers/kvasstank
name = "бочка кваса"
desc = "Желтая бочка с напитком богов."
icon = 'modular_bandastation/drinks/icons/chemical_tanks.dmi'
icon_state = "kvass"
reagent_id = /datum/reagent/consumable/kvass
openable = TRUE
Binary file not shown.
Binary file added modular_bandastation/drinks/icons/drinks.dmi
Binary file not shown.
1 change: 1 addition & 0 deletions modular_bandastation/modular_bandastation.dme
Original file line number Diff line number Diff line change
@@ -25,3 +25,4 @@
#include "whitelist220/_whitelist220.dme"
#include "world_topics/_world_topics.dme"
#include "preferences/_preferences.dme"
#include "drinks/_drinks.dme"