forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from Artemchik542/better-kvass
Неожиданное обновление Квааааасса
- Loading branch information
Showing
18 changed files
with
115 additions
and
116 deletions.
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
5 changes: 3 additions & 2 deletions
5
massmeta/code/game/objects/structures/crates_lockers/crates/large.dm
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/obj/structure/closet/crate/large/soviet | ||
name = "unusual large crate" | ||
desc = "A deeply scratched wooden crate with eraser markings. You'll need a crowbar to get it open." | ||
desc = "A deeply scratched wooden crate with erased markings. You'll need a crowbar to get it open." | ||
icon = 'massmeta/icons/obj/storage/crates.dmi' | ||
icon_state = "largecrate_soviet" | ||
icon_state = "largecrate_soviet" | ||
base_icon_state = "largecrate_soviet" |
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,6 @@ | ||
// Sell Kvaaaaaass TANK!&? | ||
|
||
/datum/export/large/reagent_dispenser/kvass | ||
unit_name = "kvasstank" | ||
export_types = list(/obj/structure/reagent_dispensers/kvasstank) | ||
contents_cost = CARGO_CRATE_VALUE |
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,9 @@ | ||
// Kvaaaaaaaaass TANK | ||
|
||
/datum/supply_pack/materials/kvasstank | ||
name = "Kvass Tank Crate" | ||
desc = "Contains a yellow barrel full of kvass." | ||
cost = CARGO_CRATE_VALUE * 2 | ||
contains = list(/obj/structure/reagent_dispensers/kvasstank) | ||
crate_name = "kvass tank crate" | ||
crate_type = /obj/structure/closet/crate/large/soviet |
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
massmeta/code/modules/reagents/chemistry/reagents/drinks/drink_reagents.dm
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,30 @@ | ||
// Квас - это очень полезный напиток. | ||
|
||
/datum/reagent/consumable/kvass | ||
name = "Kvass" | ||
description = "Kvaaaaaaass." | ||
color = "#351300" // rgb: 53, 19, 0 | ||
quality = DRINK_VERYGOOD | ||
overdose_threshold = 50 | ||
taste_description = "mmmmm kvass" | ||
ph = 6 // а точно ли 6? | ||
chemical_flags = REAGENT_CAN_BE_SYNTHESIZED | ||
default_container = /obj/item/reagent_containers/cup/soda_cans/kvass | ||
|
||
/datum/reagent/consumable/kvass/on_mob_life(mob/living/carbon/affected_mob, seconds_per_tick, times_fired) | ||
. = ..() | ||
affected_mob.adjust_dizzy(-1 SECONDS * REM * seconds_per_tick) | ||
affected_mob.adjust_drowsiness(-2 SECONDS * REM * seconds_per_tick) | ||
var/need_mob_update | ||
need_mob_update = affected_mob.adjustToxLoss(-0.5, updating_health = FALSE, required_biotype = affected_biotype) | ||
need_mob_update += affected_mob.adjustOrganLoss(ORGAN_SLOT_LIVER, -0.5 * REM * seconds_per_tick, 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 * seconds_per_tick) // а не имба? | ||
if(need_mob_update) | ||
return UPDATE_MOB_HEALTH | ||
|
||
/datum/reagent/consumable/kvass/overdose_process(mob/living/affected_mob, seconds_per_tick, times_fired) | ||
. = ..() | ||
affected_mob.set_jitter_if_lower(5 SECONDS * REM * seconds_per_tick) | ||
if(SPT_PROB(7.5, seconds_per_tick)) | ||
affected_mob.say(pick_list_replacements(KVASS_PHRASES_FILE, "kvass_phrases"), forced = /datum/reagent/consumable/kvass) |
8 changes: 8 additions & 0 deletions
8
massmeta/code/modules/reagents/chemistry/reagents/drinks/glass_styles/sodas.dm
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,8 @@ | ||
// Kvaaaaaaaaaass | ||
|
||
/datum/glass_style/drinking_glass/kvass | ||
required_drink_type = /datum/reagent/consumable/kvass | ||
name = "glass of Kvass" | ||
desc = "A glass of Kvaaaaaaass." | ||
icon = 'massmeta/icons/drinks/drinks.dmi' | ||
icon_state = "kvass" |
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
massmeta/code/modules/reagents/reagent_containers/cups/soda.dm
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,9 @@ | ||
/obj/item/reagent_containers/cup/soda_cans/kvass | ||
name = "Kvass" | ||
desc = "Kvaaaaaaaass." | ||
icon = 'massmeta/icons/drinks/soda.dmi' | ||
icon_state = "kvass" | ||
list_reagents = list(/datum/reagent/consumable/kvass = 30) | ||
drink_type = GRAIN | ||
|
||
// TODO: нужно будет потом добавить иконки "в руках" |
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,10 @@ | ||
// Kvaaaaaass!!! | ||
|
||
/obj/structure/reagent_dispensers/kvasstank | ||
name = "kvass tank" | ||
desc = "Yellow barrel full of divine liquid." | ||
icon = 'massmeta/icons/drinks/chemical_tanks.dmi' | ||
icon_state = "kvass" | ||
reagent_id = /datum/reagent/consumable/kvass | ||
openable = TRUE | ||
climbable = TRUE |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,11 @@ | ||
{ | ||
"kvass_phrases": [ | ||
"Квааааасс!!!", | ||
"Обожаю Квасс!", | ||
"Мой Любимый Напиток!", | ||
"ММммммм Квасс!!", | ||
"Обожаю я пить квасс", | ||
"Вятский сас", | ||
"КВАСС!!!" | ||
] | ||
} |