Anonymous | Login | 2024-04-25 08:09 CEST |
Main | My View | View Issues | Change Log | Wiki | Tavern | News |
Viewing Issue Advanced Details [ Jump to Notes ] [ Wiki ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0009477 | [DCSS] Bug Report | minor | have not tried | 2015-02-09 19:14 | 2015-02-09 22:16 | ||
Reporter | Siegurt | View Status | public | ||||
Assigned To | elliptic | ||||||
Priority | normal | Resolution | done | Local or Remote | Both | ||
Status | closed | Operating System | All | ||||
Projection | none | Console or Tiles | Both | ||||
ETA | none | Fixed in Branch | 0.16 ancient branch | Product Branch | 0.16 ancient branch | ||
Product Version | Commit c49590a9 and later | ||||||
Summary | 0009477: _resist_mutation is checked twice making rMut much less effective | ||||||
Description |
In commit c49590a9 mutation resistance was refactored out into it's own fuction _resist_mutation() However when doing so the code was changed from: if (!god_gift) { if ((you.rmut_from_item() && !one_chance_in(temporary ? 3 : 10) && !beneficial) || player_mutation_level(MUT_MUTATION_RESISTANCE) == 3 || (player_mutation_level(MUT_MUTATION_RESISTANCE) && !one_chance_in(temporary ? 2 : 3))) { if (failMsg) mprf(MSGCH_MUTATION, "You feel odd for a moment."); return false; to: if (!god_gift && _resist_mutation(mutclass, beneficial)) { if (_resist_mutation(mutclass, beneficial)) { if (failMsg) mprf(MSGCH_MUTATION, "You feel odd for a moment."); return false; As you can see, it checks _resist_mutation twice here, which means if something has a 90% chance of passing once, it has an 81% chance of passing both, if it's got a 66% chance of passing once, it's got a 43% chance of passing twice etc. This is confusing and misleading, as well as duplicated code, if the intention was to reduce the resistance chances of the items it should just use new values and check once (which it doesn't appear to be, it appears to be just a bug, I would guess from a bad merge, at least there's no mention of intentionally changing resist mutation chances in the commit notes.) |
||||||
Steps To Reproduce | |||||||
Additional Information | |||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Mantis 1.1.8[^] Copyright © 2000 - 2009 Mantis Group |