Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up[Ready] More mutations #5411
Conversation
KA101
added some commits
Jan 5, 2014
illi-kun
reviewed
Jan 6, 2014
| "points" : 0, | ||
| "visibility" : 0, | ||
| "ugliness" : 0, | ||
| "description" : "Just thinking of mutagen (such a lovely word! 'mutagen'. Perfect!) makes you thirsty. And you so love your new parts...you simply must have more mutagen.", |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 6, 2014
| if ((has_trait("COLDBLOOD") || has_trait("COLDBLOOD2") || | ||
| has_trait("COLDBLOOD3") || has_trait("COLDBLOOD4")) && | ||
| g->get_temperature() < 65) { | ||
| if (has_trait("COLDBLOOD3") || has_trait("COLDBLOOD4")) |
This comment has been minimized.
This comment has been minimized.
illi-kun
Jan 6, 2014
Member
can you but brackets after each if here, since you're working with this file?
KA101
added some commits
Jan 6, 2014
illi-kun
reviewed
Jan 7, 2014
| if (one_in(600 - 50 * in)) { | ||
| g->add_msg(rng(0, 6) < in ? _("You so miss the exquisite rainbow of post-humanity.") : | ||
| _("Your body is SOO booorrrring. Just a little sip to liven things up?")); | ||
| g->u.add_morale(MORALE_CRAVING_MUTAGEN, -20, -200); |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| g->add_msg(rng(0, 6) < in ? _("You haven't had any mutagen lately.") : | ||
| _("You could use some new parts...")); | ||
| g->u.add_morale(MORALE_CRAVING_MUTAGEN, -5, -50); | ||
| } |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| return string_format(_( | ||
| "Strength - %d; Perception - 1; Dexterity - 1;\n" | ||
| "Depression. Frequent cravings. Vomiting."), strpen); | ||
| } | ||
| else return string_format(_( |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| @@ -10308,6 +10311,19 @@ void game::eat(int pos) | |||
| add_msg(_("You eat the underbrush.")); | |||
| return; | |||
| } | |||
| if (u.has_trait("GRAZER") && m.ter(u.posx, u.posy) == t_grass && | |||
| query_yn(_("Graze?"))) { | |||
| u.moves -= 400; | |||
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| if ((u.hunger < 10) || one_in(20 - u.int_cur)) { | ||
| add_msg(_("You eat some of the taller grass, careful to leave some growing.")); | ||
| u.hunger -= 2; | ||
| } |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| else { add_msg(_("You eat the grass.")); | ||
| u.hunger -= 5; | ||
| m.ter_set(u.posx, u.posy, t_dirt); | ||
| } |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| @@ -1175,7 +1216,12 @@ int iuse::mut_iv(player *p, item *it, bool) { | |||
| g->add_msg_if_player(p, _("Mmm...the *special* venom.")); | |||
| mutation_category = "MUTCAT_SPIDER"; | |||
| } else if( it->has_flag("MUTAGEN_SLIME") ) { | |||
| if(p->has_trait("MUT_JUNKIE")) { | |||
| g->add_msg_if_player(p, _("Maybe if you drank enough, you'd become mutagen...")); | |||
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| if(p->has_trait("MUT_JUNKIE")) { | ||
| g->add_msg_if_player(p, _("Maybe if you drank enough, you'd become mutagen...")); | ||
| } | ||
| else if(!(p->has_trait("MUT_JUNKIE"))) { | ||
| g->add_msg_if_player(p, _("This stuff takes you back. Downright primordial!")); |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| g->add_msg_if_player(p,_("Images of your past life flash before you.")); | ||
| p->add_disease("stunned", rng(2, 3)); | ||
| if (g->u.has_trait("NOPAIN")) { | ||
| g->add_msg_if_player(p,_("You feel Bugged.")); |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| p->add_disease("stunned", rng(2, 3)); | ||
| if (g->u.has_trait("NOPAIN")) { | ||
| g->add_msg_if_player(p,_("You feel Bugged.")); | ||
| } |
This comment has been minimized.
This comment has been minimized.
illi-kun
reviewed
Jan 7, 2014
| @@ -5262,7 +5300,9 @@ void player::suffer() | |||
| // Negative bionics effects | |||
| if (has_bionic("bio_dis_shock") && one_in(1200)) { | |||
| g->add_msg(_("You suffer a painful electrical discharge!")); | |||
| if (!(has_trait("NOPAIN"))) { | |||
| pain++; | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Thanks, looks fine now! |
This comment has been minimized.
This comment has been minimized.
|
Feel free to comment on the merits, too. ;-) |
This comment has been minimized.
This comment has been minimized.
|
Haha, I'll if I find something to say, but for the moment I have only bunch of noisy comments about indents. |
This comment has been minimized.
This comment has been minimized.
Cenobite000
commented
Jan 8, 2014
|
Oh! Just noticed the Cenobite mutation line. This is great. Snicker |
This comment has been minimized.
This comment has been minimized.
|
-Well, it doesn't actually stop the negative effects, though... snickers back- Actually, now it does. Just takes another mutation. |
KA101
added some commits
Jan 9, 2014
This comment has been minimized.
This comment has been minimized.
|
Something seems to be amiss here. Having the Everything else seems to be okay though. |
This comment has been minimized.
This comment has been minimized.
|
I'll fix that as soon as I can get a working connection at the room. Thanks. (Streak was gonna end on Friday anyway when I fly to Florida.) |
kevingranade
reviewed
Jan 12, 2014
| // Metabolizing it cancels out the depressant | ||
| // except for Irish coffee, which already | ||
| // has a postive stim value | ||
| if (!(it->type->id == "irish_coffee")) { |
This comment has been minimized.
This comment has been minimized.
kevingranade
Jan 12, 2014
Member
How about making this test based on food->stim < 0 instead of calling out the specific item?
This comment has been minimized.
This comment has been minimized.
KA101
Jan 12, 2014
Author
Contributor
Sure, just as soon as I can actually push code again I'll get on that. Leaving the library shortly.
:-(
kevingranade
merged commit cee67a6
into
CleverRaven:master
Jan 12, 2014
This comment has been minimized.
This comment has been minimized.
|
Pulled without seeing the tail of the discussion, sorry about that. |
KA101 commentedJan 5, 2014
Time to start expanding things.
This pass:
A needed upgrade to the debug-mutation code (it currently can't handle threshold-granting or post-threshold traits; this lets you grant/revoke thresholds manually)
The long-promised Ectothermic (like Cold-blooded, but now should grant bonus speed above 65F, needs Lizard)
Alpha gets a few more mundane traits to improve odds of getting Prime
Threshold safety-lock (no, it's not supposed to be a valid downgrade target)
Mutagen addiction, with Extra Bonus trait to make it nastier!
Post-threshold upgrade for Cattle: Ruminant->Grazer, letting you eat grass for minor (2 or 5) hunger boost
Restricts the Insanely stat-buffs to post-Threshold
Upgraded Masochist for the Medical category post-threshold
Pain-blocker for the Medical category post-threshold
Nastier venom for Arachnids (Yeah, I'll put in extra legs for 'em and for Insects once I work out what good they'd do)
Substance Tolerance, for those of us who don't mind less mileage per hit
Alcohol Metabolism, Subterranean boost (less Drunk, less Depressant, more Nutrition!)
Non-purifiable traits ought to resist not-in-category cancellation (75% chance to not be marked for deletion)
Enhanced statboosters for Prime folks
Cenobite lengthened out to a two-mutation run (total of three, counting Masochist); they now get noticeably lighter Pain debuffs (but they look horrid in the bargain, not that it matters much ATM)
Went through and apparently no actual merge conflicts with this. Whenever you're ready, I guess.