|
146 | 146 |
|
147 | 147 | // Over 11, Light drinkers will constantly gain slurring up to 10 seconds of slurring. |
148 | 148 | if(HAS_TRAIT(owner, TRAIT_LIGHT_DRINKER) & (drunk_value >= 11)) |
149 | | - owner.adjust_slurring_up_to(2.4 SECONDS, 10 SECONDS) |
| 149 | + owner.adjust_timed_status_effect(4 SECONDS, /datum/status_effect/speech/slurring/drunk, max_duration = 10 SECONDS) |
150 | 150 | if(HAS_TRAIT(owner, TRAIT_DRUNK_HEALING) & (drunk_value >= 11)) // To save headache this will be separate for drunken resilience & effects stack with lower tiers |
151 | 151 | owner.adjustBruteLoss(-0.1, FALSE) |
152 | 152 | owner.adjustFireLoss(-0.06, FALSE) |
153 | 153 |
|
| 154 | + // over 21 normal people will start to slur |
| 155 | + if(drunk_value >= 21) |
| 156 | + if(!HAS_TRAIT(owner, TRAIT_ALCOHOL_TOLERANCE)) |
| 157 | + owner.adjust_timed_status_effect(4 SECONDS, /datum/status_effect/speech/slurring/drunk, max_duration = 20 SECONDS) |
| 158 | + |
154 | 159 | // Over 41, we have a 30% chance to gain confusion, and we will always have 20 seconds of dizziness. |
155 | 160 | if(drunk_value >= 41) |
156 | 161 | if(prob(30)) |
|
162 | 167 | owner.adjustBruteLoss(-0.2, FALSE) |
163 | 168 | owner.adjustFireLoss(-0.09, FALSE) |
164 | 169 |
|
165 | | - // Over 51, we have a 3% chance to gain a lot of confusion and vomit, and we will always have 50 seconds of dizziness and normal drinkers will start to slur |
| 170 | + // Over 51, we have a 3% chance to gain a lot of confusion and vomit, and we will always have 50 seconds of dizziness |
166 | 171 | if(drunk_value >= 51) |
167 | 172 | owner.set_dizzy_if_lower(50 SECONDS) |
168 | 173 | if(prob(3)) |
169 | 174 | owner.adjust_confusion(15 SECONDS) |
170 | 175 | if(iscarbon(owner)) |
171 | 176 | var/mob/living/carbon/carbon_owner = owner |
172 | 177 | carbon_owner.vomit() // Vomiting clears toxloss - consider this a blessing |
173 | | - if(!HAS_TRAIT(owner, TRAIT_ALCOHOL_TOLERANCE)) |
174 | | - owner.adjust_slurring_up_to(2.4 SECONDS, 7 SECONDS) |
175 | 178 |
|
176 | 179 | // Over 71, we will constantly have blurry eyes |
177 | 180 | if(drunk_value >= 71) |
|
186 | 189 | if(owner.stat == CONSCIOUS && prob(5)) |
187 | 190 | to_chat(owner, span_warning("Maybe you should lie down for a bit...")) |
188 | 191 | if(HAS_TRAIT(owner, TRAIT_ALCOHOL_TOLERANCE)) |
189 | | - owner.adjust_slurring_up_to(2.4 SECONDS, 4 SECONDS) |
| 192 | + owner.adjust_timed_status_effect(4 SECONDS, /datum/status_effect/speech/slurring/drunk, max_duration = 20 SECONDS) |
190 | 193 |
|
191 | 194 | // Over 91, we gain even more toxloss, brain damage, and have a chance of dropping into a long sleep |
192 | 195 | if(drunk_value >= 91) |
|
0 commit comments