mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[MIRROR] Adds pillow bonus for sleeping. [MDB IGNORE] (#20241)
* Adds pillow bonus for sleeping. (#74349) ## About The Pull Request There is bedsheet bonus, but no pillow bonus. ## Why It's Good For The Game Healthy sleep. ## Changelog 🆑 add: Sleeping with a pillow restores more health. /🆑 --------- Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com> * Adds pillow bonus for sleeping. --------- Co-authored-by: Helg2 <93882977+Helg2@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com>
This commit is contained in:
co-authored by
MrMelbert
Helg2
parent
2eb6f58ca3
commit
be0e290f94
@@ -195,11 +195,12 @@
|
||||
healing += 0.1
|
||||
|
||||
// don't forget the bedsheet
|
||||
for(var/obj/item/bedsheet/bedsheet in range(owner.loc,0))
|
||||
if(bedsheet.loc != owner.loc) //bedsheets in your backpack/neck don't give you comfort
|
||||
continue
|
||||
if(locate(/obj/item/bedsheet) in owner.loc)
|
||||
healing += 0.1
|
||||
|
||||
// you forgot the pillow
|
||||
if(locate(/obj/item/pillow) in owner.loc)
|
||||
healing += 0.1
|
||||
break //Only count the first bedsheet
|
||||
|
||||
if(healing > 0 && health_ratio > 0.8)
|
||||
owner.adjustBruteLoss(-1 * healing, required_bodytype = BODYTYPE_ORGANIC)
|
||||
|
||||
Reference in New Issue
Block a user