Skip to content

Commit 6ec9604

Browse files
Do AI dream of electric sheep? (#4520)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request Removes the ability for mobs without a client to dream and snore <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game Message spam and background bullshit for handling dreams <!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding. --> ## Changelog :cl: del: AI no longer dream of electric sheep /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. --> --------- Signed-off-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Co-authored-by: Theos <theubernyan@gmail.com>
1 parent 812f05b commit 6ec9604

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

code/datums/status_effects/debuffs.dm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@
165165
owner.adjustStaminaLoss(healing)
166166
if(human_owner && human_owner.drunkenness)
167167
human_owner.drunkenness *= 0.997 //reduce drunkenness by 0.3% per tick, 6% per 2 seconds
168-
if(prob(20))
169-
if(carbon_owner)
170-
carbon_owner.handle_dreams()
168+
if(prob(20) && carbon_owner?.client)
169+
carbon_owner.handle_dreams()
171170
if(prob(10) && owner.health > owner.crit_threshold)
172171
owner.emote("snore")
173172

0 commit comments

Comments
 (0)