forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Добавление напитка богов (кваса) в игру #1325
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
ac90601
Kvaaaaaaaaaaaass
ThaumicNik 7e9cb78
Moving to modular food
ThaumicNik ce8513a
Less alcoholic kvass
ThaumicNik c0610a5
Merge branch 'ss220club:master' into kvas
ThaumicNik 8febe8d
Canned Kvass
ThaumicNik 2bc466d
Merge branch 'kvas' of https://github.com/ThaumicNik/Paradise-SS220 i…
ThaumicNik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/datum/modpack/devices | ||
name = "Kvass drinks" | ||
desc = "Добавляет в игру 2 вида кваса и рецепт для их приготовления" | ||
author = "ThaumicNik" | ||
|
||
/datum/reagent/consumable/ethanol/kvass | ||
name = "Alcoholic Kvass" | ||
id = "alco_kvass" | ||
description = "Алкогольный напиток, полученный путём ферментации хлеба" | ||
color = "#775a1c" | ||
nutriment_factor = 1 * REAGENTS_METABOLISM | ||
alcohol_perc = 0.3 | ||
drink_icon = "alco_kvass" | ||
drinking_glass_icon = 'modular_ss220/kvass/kvass.dmi' | ||
drink_name = "Стакан алкогольного кваса" | ||
drink_desc = "Освежающий горьковато-сладкий напиток прямиком из СССП" | ||
taste_description = "квас" | ||
|
||
/datum/reagent/consumable/drink/kvass | ||
name = "Kvass" | ||
id = "kvass" | ||
description = "Квас без алкоголя. Что отличает его от обычной газировки?" | ||
color = "#574113" | ||
adj_sleepy = -4 SECONDS | ||
drink_icon = "kvass" | ||
drinking_glass_icon = 'modular_ss220/kvass/kvass.dmi' | ||
drink_name = "Стакан безалкогольного кваса" | ||
drink_desc = "Квас без алкоголя. Освежает, но по вкусу как-то... блекло?" | ||
harmless = FALSE | ||
taste_description = "скучный квас" | ||
|
||
/datum/chemical_reaction/kvass | ||
name = "Kvass" | ||
id = "kvass" | ||
result = "kvass" | ||
required_reagents = list("alco_kvass" = 5, "antihol" = 1) | ||
result_amount = 5 | ||
mix_sound = 'sound/goonstation/misc/drinkfizz.ogg' | ||
|
||
// fermenting_barrel don't have behavior for non-plant food, so we need some proc for bread | ||
/obj/structure/fermenting_barrel/proc/make_drink(var/obj/item/I, var/drink_id, var/amount) | ||
reagents.add_reagent(drink_id, amount) | ||
qdel(I) | ||
playsound(src, 'sound/effects/bubbles.ogg', 50, TRUE) | ||
|
||
/obj/structure/fermenting_barrel/attackby(obj/item/I, mob/user, params) | ||
if(istype(I, /obj/item/food/snacks/sliceable/bread)) | ||
if(!user.drop_item()) | ||
to_chat(user, "<span class='warning'>[I] is stuck to your hand!</span>") | ||
return FALSE | ||
I.forceMove(src) | ||
to_chat(user, "<span class='notice'>You place [I] into [src] to start the fermentation process.</span>") | ||
addtimer(CALLBACK(src, PROC_REF(make_drink), I, "alco_kvass", 35), rand(80, 120) * speed_multiplier) | ||
return | ||
return ..() | ||
|
||
/obj/machinery/chem_dispenser/soda/Initialize(mapload) | ||
dispensable_reagents += "kvass" | ||
return ..() | ||
|
||
/obj/item/handheld_chem_dispenser/soda/Initialize(mapload) | ||
dispensable_reagents += "kvass" | ||
return ..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "kvass.dm" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/datum/reagent/consumable/ethanol/kvass | ||
name = "Alcoholic Kvass" | ||
id = "alco_kvass" | ||
description = "Алкогольный напиток, полученный путём ферментации хлеба" | ||
color = "#775a1c" | ||
nutriment_factor = 1 * REAGENTS_METABOLISM | ||
alcohol_perc = 0.3 | ||
drink_icon = "alco_kvass" | ||
drinking_glass_icon = 'modular_ss220/kvass/kvass.dmi' | ||
drink_name = "Стакан алкогольного кваса" | ||
drink_desc = "Освежающий горьковато-сладкий напиток прямиком из СССП" | ||
taste_description = "квас" | ||
|
||
/datum/reagent/consumable/drink/kvass | ||
name = "Kvass" | ||
id = "kvass" | ||
description = "Квас без алкоголя. Чем это отличает его от обычной газировки?" | ||
color = "#574113" | ||
adj_sleepy = -4 SECONDS | ||
drink_icon = "kvass" | ||
drinking_glass_icon = 'modular_ss220/kvass/kvass.dmi' | ||
drink_name = "Стакан безалкогольного кваса" | ||
drink_desc = "Квас без алкоголя. Освежает, но по вкусу как-то... блекло?" | ||
harmless = FALSE | ||
taste_description = "скучный квас" | ||
|
||
/datum/chemical_reaction/kvass | ||
name = "Kvass" | ||
id = "kvass" | ||
result = "kvass" | ||
required_reagents = list("alco_kvass" = 5, "antihol" = 1) | ||
result_amount = 5 | ||
mix_sound = 'sound/goonstation/misc/drinkfizz.ogg' | ||
|
||
// fermenting_barrel don't have behavior for non-plant food, so we need some proc for bread | ||
/obj/structure/fermenting_barrel/proc/make_drink(var/item/I, var/drink_id, var/amount) | ||
reagents.add_reagent(drink_id, amount) | ||
qdel(I) | ||
playsound(src, 'sound/effects/bubbles.ogg', 50, TRUE) | ||
|
||
/obj/structure/fermenting_barrel/attackby(obj/item/I, mob/user, params) | ||
if(istype(I, /obj/item/food/snacks/sliceable/bread)) | ||
if(!user.drop_item()) | ||
to_chat(user, "<span class='warning'>[I] is stuck to your hand!</span>") | ||
return FALSE | ||
G.forceMove(src) | ||
to_chat(user, "<span class='notice'>You place [I] into [src] to start the fermentation process.</span>") | ||
addtimer(CALLBACK(src, PROC_REF(make_drink), I, "alco_kvass", 35), rand(80, 120) * speed_multiplier) | ||
return ..() | ||
|
||
/obj/machinery/chem_dispenser/soda/Initialize(mapload) | ||
dispensable_reagents += "kvass" | ||
return ..() | ||
|
||
/obj/item/handheld_chem_dispenser/soda/Initialize(mapload) | ||
dispensable_reagents += "kvass" | ||
return ..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ты шо, шизик? Есть же уже модуль с напитками