Skip to content

Commit

Permalink
Add Booming voice trait that increases yelling volume (CleverRaven#52143
Browse files Browse the repository at this point in the history
)

* added Booming Voice trait for Public Speaking hobby

Co-authored-by: Maleclypse <[email protected]>
  • Loading branch information
JerryLin1 and Maleclypse authored Oct 23, 2021
1 parent fcab0db commit 25ec152
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data/json/hobbies.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
"name": "Public Speaking",
"description": "You were an incredibly social individual.",
"points": 1,
"skills": [ { "level": 3, "name": "speech" } ]
"skills": [ { "level": 3, "name": "speech" } ],
"traits": [ "BOOMING_VOICE" ]
},
{
"type": "profession",
Expand Down
8 changes: 8 additions & 0 deletions data/json/mutations/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -7724,5 +7724,13 @@
"description": "Your ability to feel or express emotion has been greatly hampered.",
"category": [ "MEDICAL" ],
"threshreq": [ "THRESH_MEDICAL" ]
},
{
"type": "mutation",
"id": "BOOMING_VOICE",
"name": { "str": "Booming Voice" },
"points": 0,
"description": "You know how to project your voice. You are able to shout much louder than the average person.",
"valid": false
}
]
4 changes: 4 additions & 0 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ static const bionic_id afs_bio_linguistic_coprocessor( "afs_bio_linguistic_copro

static const trait_id trait_BADTEMPER( "BADTEMPER" );
static const trait_id trait_BIRD_EYE( "BIRD_EYE" );
static const trait_id trait_BOOMING_VOICE( "BOOMING_VOICE" );
static const trait_id trait_CEPH_VISION( "CEPH_VISION" );
static const trait_id trait_CHEMIMBALANCE( "CHEMIMBALANCE" );
static const trait_id trait_CHLOROMORPH( "CHLOROMORPH" );
Expand Down Expand Up @@ -6200,6 +6201,9 @@ int Character::get_shout_volume() const
base = 15;
shout_multiplier = 3;
}
if( has_trait( trait_BOOMING_VOICE ) ) {
base += 10;
}

// You can't shout without your face
if( has_trait( trait_PROF_FOODP ) && !( is_wearing( itype_id( "foodperson_mask" ) ) ||
Expand Down

0 comments on commit 25ec152

Please sign in to comment.