Skip to content

Commit

Permalink
Obsolete trigger happy trait (#39493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Taylor authored Apr 14, 2020
1 parent de43441 commit 922d2fd
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 9 deletions.
5 changes: 3 additions & 2 deletions data/json/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,9 @@
"id": "TRIGGERHAPPY",
"name": { "str": "Trigger Happy" },
"points": -1,
"description": "On rare occasion, you will go full-auto when you intended to fire a single shot. This has no effect when firing semi-automatic firearms.",
"starting_trait": true,
"description": "Unimplemented. To be removed after 0.F. to preserve save compatibility.",
"starting_trait": false,
"player_display": false,
"valid": false
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
{ "trait": "MYOPIC" },
{ "trait": "HYPEROPIC" },
{ "trait": "JITTERY" },
{ "trait": "TRIGGERHAPPY" },
{ "trait": "SMELLY" },
{ "trait": "PROJUNK" },
{ "trait": "BADBACK" },
Expand Down
1 change: 0 additions & 1 deletion data/json/npcs/starting_traits.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
{ "trait": "SAVANT", "prob": 10 },
{ "trait": "SCHIZOPHRENIC", "prob": 1 },
{ "trait": "SQUEAMISH", "prob": 20 },
{ "trait": "TRIGGERHAPPY", "prob": 10 },
{ "trait": "ANTIWHEAT", "prob": 5 },
{ "trait": "WOOLALLERGY", "prob": 5 }
]
Expand Down
1 change: 0 additions & 1 deletion data/mods/Aftershock/npcs/mutant_npcs/trait_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@
{ "trait": "SAVANT", "prob": 10 },
{ "trait": "SCHIZOPHRENIC", "prob": 10 },
{ "trait": "SQUEAMISH", "prob": 10 },
{ "trait": "TRIGGERHAPPY", "prob": 10 },
{ "group": "Appearance_demographics", "prob": 100 }
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
[ "JITTERY", 10 ],
[ "BADKNEES", 10 ],
[ "SLOWRUNNER", 10 ],
[ "TRIGGERHAPPY", 10 ],
[ "FLIMSY", 10 ],
{ "group": "Appearance_demographics", "prob": 100 }
],
Expand Down
1 change: 0 additions & 1 deletion data/mods/Mutant_NPCs/trait_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@
{ "trait": "SAVANT", "prob": 10 },
{ "trait": "SCHIZOPHRENIC", "prob": 10 },
{ "trait": "SQUEAMISH", "prob": 10 },
{ "trait": "TRIGGERHAPPY", "prob": 10 },
{ "group": "Appearance_demographics", "prob": 100 }
]
}
Expand Down
2 changes: 0 additions & 2 deletions src/avatar_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,6 @@ void avatar_action::aim_do_turn( avatar &you, map &m )

you.moves -= reload_time;

// TODO: add check for TRIGGERHAPPY
int shots_fired = you.fire_gun( trajectory.back(), gun.qty, *gun );

// TODO: bionic power cost of firing should be derived from a value of the relevant weapon.
Expand Down Expand Up @@ -999,7 +998,6 @@ void avatar_action::fire_turret_manual( avatar &you, map &m, turret_data &turret
wrefresh( g->w_terrain );
g->draw_panels();

// TODO: add check for TRIGGERHAPPY
turret.fire( you, trajectory.back() );
}
g->reenter_fullscreen();
Expand Down

0 comments on commit 922d2fd

Please sign in to comment.