Skip to content

Commit

Permalink
dizzy tweaks
Browse files Browse the repository at this point in the history
Уменьшаем силу качания экрана.
  • Loading branch information
Rerik007 committed Jul 11, 2023
1 parent f0c0f93 commit 902d414
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions code/datums/status_effects/debuffs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@
if(!.)
return
var/dir = sin(world.time)
px_diff = cos(world.time * 3) * min(strength * 0.2, 32) * dir
py_diff = sin(world.time * 3) * min(strength * 0.2, 32) * dir
var/amplitude = min(strength * 0.02, 32)
px_diff = cos(world.time * 3) * amplitude * dir
py_diff = sin(world.time * 3) * amplitude * dir
owner.client?.pixel_x = px_diff
owner.client?.pixel_y = py_diff

Expand Down Expand Up @@ -286,7 +287,6 @@
// THRESHOLD_CONFUSION (80 SECONDS)
if(actual_strength >= THRESHOLD_CONFUSION && prob(0.66))
owner.AdjustConfused(6 SECONDS, bound_lower = 2 SECONDS, bound_upper = 1 MINUTES)
owner.AdjustDizzy(6 SECONDS, bound_lower = 2 SECONDS, bound_upper = 2 MINUTES)
// THRESHOLD_SPARK (100 SECONDS)
if(is_ipc && actual_strength >= THRESHOLD_SPARK && prob(0.5))
do_sparks(3, 1, owner)
Expand Down
10 changes: 5 additions & 5 deletions code/modules/reagents/chemistry/reagents/alcohol.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@
id = "rainbow_sky"
description = "A drink that shimmers with all the colors of the rainbow with notes of the galaxy."
color = "#ffffff"
dizzy_adj = 10
dizzy_adj = 20 SECONDS
alcohol_perc = 1.5
drink_icon = "rainbow_sky"
drink_name = "Rainbow Sky"
Expand Down Expand Up @@ -1505,7 +1505,7 @@
description = "The drunkard hunter came from deep space, and it looks like he found a victim."
color = "#200b0b"
alcohol_perc = 0.4
dizzy_adj = 3
dizzy_adj = 6 SECONDS
drink_icon = "jagermeisterglass"
drink_name = "Glass of Jagermeister"
drink_desc = "The drunkard hunter came from deep space, and it looks like he found a victim."
Expand All @@ -1517,7 +1517,7 @@
description = "From such a schnapps it's not a sin to start yodeling."
color = "#e0e0e0"
alcohol_perc = 0.4
dizzy_adj = 1
dizzy_adj = 2 SECONDS
drink_icon = "schnapsglass"
drink_name = "Glass of Schnaps"
drink_desc = "From such a schnapps it's not a sin to start yodeling."
Expand All @@ -1529,7 +1529,7 @@
description = "Flying into space, many thought that they had grasped fate."
color = "#e0e0e0"
alcohol_perc = 0.45
dizzy_adj = 1
dizzy_adj = 2 SECONDS
drink_icon = "sambukaglass"
drink_name = "Glass of Sambuka"
drink_desc = "Flying into space, many thought that they had grasped fate."
Expand All @@ -1552,7 +1552,7 @@
description = "Don't mix up the label sizes, because I won't change anything."
color = "#d44071"
alcohol_perc = 0.45
dizzy_adj = 2
dizzy_adj = 4 SECONDS
drink_icon = "bitterglass"
drink_name = "Glass of bitter"
drink_desc = "Don't mix up the label sizes, because I won't change anything."
Expand Down

0 comments on commit 902d414

Please sign in to comment.