Skip to content

Commit

Permalink
Fix part_design bitshift direction (DIES_IRAE only) (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevnull authored Oct 13, 2024
1 parent 129dbed commit cf5ba5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/deck_build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,13 @@ void part_design(struct char_data *ch, struct obj_data *part) {
} else {
int target = GET_PART_TARGET_MPCP(part)/2, skill = get_skill(ch, SKILL_CYBERTERM_DESIGN, target);
GET_PART_DESIGN_COMPLETION(part) = GET_PART_TARGET_MPCP(part) * 2;
#ifdef DIES_IRAE
// Matrix pg 55, half of design successes are used to reduce the build TN
GET_PART_DESIGN_SUCCESSES(part) = success_test(skill, target) >> 1;
#else
// Since classic, we've been doubling design successes instead
GET_PART_DESIGN_SUCCESSES(part) = success_test(skill, target) << 1;
#endif
GET_PART_BUILDER_IDNUM(part) = GET_IDNUM(ch);
/* Disabled on design tests by player request.
if (get_and_deduct_one_crafting_token_from_char(ch)) {
Expand Down

0 comments on commit cf5ba5c

Please sign in to comment.