-
Notifications
You must be signed in to change notification settings - Fork 523
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
Vomitting now empties your stomach #6527
Changes from 5 commits
4ee08a6
d703ba4
db8312d
aef7580
d59d74d
f5bbbd1
9fbaf8a
2a33f03
c0f3410
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -880,8 +880,8 @@ | |
if(!lastpuke) | ||
lastpuke = 1 | ||
to_chat(src, SPAN_WARNING("You feel nauseous...")) | ||
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(to_chat), src, "You feel like you are about to throw up!"), 15 SECONDS) | ||
addtimer(CALLBACK(src, PROC_REF(do_vomit)), 25 SECONDS) | ||
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(to_chat), src, "You feel like you are about to throw up!"), 10 SECONDS) | ||
addtimer(CALLBACK(src, PROC_REF(do_vomit)), 15 SECONDS) | ||
|
||
/mob/living/carbon/human/proc/do_vomit() | ||
apply_effect(5, STUN) | ||
|
@@ -894,9 +894,14 @@ | |
if(istype(location, /turf)) | ||
location.add_vomit_floor(src, 1) | ||
|
||
if(reagents.reagent_list.len) | ||
var/purge_percent = 0.7 //30% | ||
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. what's the point of making this a local var if you're using it nowhere else but line 900 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. Originally I was just exposing vars for ease of seeing what value was being used (I thought I needed three, but over time managed to whittle it down to one) I'll just set line 900 to * 0.7 |
||
for(var/datum/reagent/ingested_chem in reagents.reagent_list) | ||
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. as anything 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.
|
||
ingested_chem.volume = (ingested_chem.volume * purge_percent) | ||
|
||
nutrition -= 40 | ||
apply_damage(-3, TOX) | ||
addtimer(VARSET_CALLBACK(src, lastpuke, FALSE), 35 SECONDS) | ||
addtimer(VARSET_CALLBACK(src, lastpuke, FALSE), 15 SECONDS) | ||
|
||
/mob/living/carbon/human/proc/get_visible_gender() | ||
if(wear_suit && wear_suit.flags_inv_hide & HIDEJUMPSUIT && ((head && head.flags_inv_hide & HIDEMASK) || wear_mask)) | ||
|
@@ -1707,15 +1712,15 @@ | |
|
||
/mob/living/carbon/human/on_knockedout_trait_gain(datum/source) | ||
. = ..() | ||
|
||
update_execute_hud() | ||
|
||
return . | ||
|
||
/mob/living/carbon/human/on_knockedout_trait_loss(datum/source) | ||
. = ..() | ||
|
||
update_execute_hud() | ||
|
||
return . | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -411,3 +411,12 @@ | |
custom_metabolism = AMOUNT_PER_TIME(1, 200 SECONDS) | ||
data = 0 | ||
properties = list(PROPERTY_CURING = 2) | ||
|
||
/datum/reagent/medical/ipicac | ||
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. Isn't it Ipecac 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. ...........yes |
||
name = "Ipicac" | ||
id = "ipicac" | ||
description = "A rapid acting emetic made from the ipecacuanha plant." | ||
reagent_state = LIQUID | ||
color = "#DEAD00" | ||
data = 0 | ||
properties = list(PROPERTY_EMETIC = 1) |
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.
length(), not .len
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.
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.
Sorry, if(length(reagents.reagent_list))
My javascript background comes back to haunt me.