-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mainline sleep deprivation #37317
Mainline sleep deprivation #37317
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,7 +217,7 @@ static const efftype_id effect_weak_antibiotic( "weak_antibiotic" ); | |
static const efftype_id effect_weak_antibiotic_visible( "weak_antibiotic_visible" ); | ||
static const efftype_id effect_webbed( "webbed" ); | ||
static const efftype_id effect_weed_high( "weed_high" ); | ||
static const efftype_id effect_magnesium_supplements( "magnesium" ); | ||
static const efftype_id effect_melatonin_supplements( "melatonin" ); | ||
|
||
static const trait_id trait_ACIDBLOOD( "ACIDBLOOD" ); | ||
static const trait_id trait_ACIDPROOF( "ACIDPROOF" ); | ||
|
@@ -9693,14 +9693,14 @@ int iuse::gobag_personal( player *p, item *it, bool, const tripoint & ) | |
return gobag( p, it, true ); | ||
} | ||
|
||
int iuse::magnesium_tablet( player *p, item *it, bool, const tripoint & ) | ||
int iuse::melatonin_tablet( player *p, item *it, bool, const tripoint & ) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need an iuse for this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Presumably for the message if you've already taken it. Not a super strong justification, but that's what I can come up with. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that's information we shouldn't give to the player. We don't warn for excessive use of other drugs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, will look into cutting that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's worth noting that additional doses of melatonin just generally don't do anything |
||
{ | ||
p->add_msg_if_player( _( "You pop a %s." ), it->tname() ); | ||
if( p->has_effect( effect_magnesium_supplements ) ) { | ||
if( p->has_effect( effect_melatonin_supplements ) ) { | ||
p->add_msg_if_player( m_warning, | ||
_( "Simply taking more magnesium won't help. You have to go to sleep for it to work." ) ); | ||
_( "Simply taking more melatonin won't help. You have to go to sleep for it to work." ) ); | ||
} | ||
p->add_effect( effect_magnesium_supplements, 16_hours ); | ||
p->add_effect( effect_melatonin_supplements, 16_hours ); | ||
return it->type->charges_to_use(); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option should be removed now.