Skip to content

Instantly share code, notes, and snippets.

@sparr
Created April 9, 2015 19:07
Show Gist options
  • Save sparr/9002acb015bb1e5cf37c to your computer and use it in GitHub Desktop.
Save sparr/9002acb015bb1e5cf37c to your computer and use it in GitHub Desktop.
CDDA strength effects
Effects of Strength:
activity_handlers.cpp
activity_handlers::butcher_finish
151: strength below 4 incurs a butcher skill check penalty
activity_handlers.cpp
activity_handlers::pulp_do_turn
770: increases pulp damage
772: increases pulp damage cap
character.coo
Character::recalc_hp
155: str_max increases base hp
construction.cpp
construct::done_dig_stair
989: increases likelihood of catastrophic failure when digging down above lava
1002,1006: increases chance of saving self from lava with grappling hook
1021: decreases chance of using/losing grapnel when failing to save self from lava
1035: increases chance of web breaking when falling into lava
1039: increases chance of saving self from lava with web
1058,1062: increases chance of saving self from lava with rope
1077: increases chance of rope surviving the throw attempt
construct::done_mine_downstair
same as done_dig_stair
field.cpp
map::player_in_field
1710: decreases chance of paralysis from electricity (97% at str 0, 0% at str 30, linear)
game.cpp
game::start_game
664: str_max reduces starting drunkenness in BAD_DAY scenarios
game::smash
7003: increases ability to smash things
pet_menu
7652: increases ability to swap position with pet
7683: increases ability to push pet
game::plfire
10572: allows drawing of difficult bows
game::plmove
11970: reduces recoil faster while moving
game::plswim
12310: increases oxygen available when swimming underwater
game::vertical_move
12508: increases chances of pushing past monsters on stairs
12545: increases oxygen available when swimming underwater
12798: str_max increases falling damage
item.cpp
item::is_two_handed
2689: allows wielding heavier weapons in one hand
item::reload_time
3155: speeds up reloading of certain weapons
item::gun_range
3498-3516: allows drawing and max range for difficult bows
iuse.cpp
iuse::alcohol
719,722: str_max decreases effective duration of alcohol
iuse::alcohol_weak
745,748: str_max decreases effective duration of weak alcohol
iuse::alcohol_strong
768,771: str_max decreases effective duration of strong alcohol
iuse::anticonvulsant
1163: decreases effective duration of anticonvulsant drugs
iuse::coke
1206: decreases effective duration of coke
iuse::meth
1239: decreases effective duration of meth
1261: affects hunger penalty of meth (BUG)
iuse::poison
1301: increases effectiveness of EATPOISON trait
iuse::mut_iv
1700,1705,1766: increases volume of mutation screams
iuse::crowbar
4226: speeds up crowbar use
4227: increases chances of successful crowbar use
4252: decreases chance of breaking glass with crowbar (BUG?)
iuse::granade_act
5112,5117: str_max increases possible granade strength buff
5146,5151: str_max increases possible granade strength nerf
iuse::tazer
5593,5596: str_max increases tazer damage taken
iuse::tazer2
5683,5685: str_max increases tazer damage taken
map.cpp
map::vehproceed
582: decreases chance of being thrown from seat with no seatbelt
608: decreases velocity when thrown from seat
map::can_move_furniture
1305: allows moving heavier furniture
martialarts.cpp
ma_buff::hit_bonus
389: increases hit chance for some buffs
ma_buff::dodge_bonus
396: increases dodge chance for some buffs
ma_buff::block_bonus
403: increases block chance for some buffs
ma_buff::bash_bonus
429: increases bash chance for some buffs
ma_buff::cut_bonus
440: increases cut chance for some buffs
melee.cpp
player::handle_melee_wear
47: increases chance of damaging melee weapons
stumble
456: decreases chance of stumbling
player::base_damage
638: increases base damage
player::roll_bash_damage
653: increases bash damage
player::block_hit
1339: improve blocking with weapons
1341: improve blocking with limbs
player::melee_special_effects
1578: increases chance of shattering glass melee weapons
1635: decreases chance of cutting weapon getting stuck
player::mutation_attacks
1693: increases damage with SABER_TEETH trait
1893: increases damage with HOOVES trait
1912: increases damage with RAP_TALONS trait
2078: increases damage with ARM_TENTACLES* traits, with CLAWS_TENTACLE trait
2080: increases damage with ARM_TENTACLES* traits, without CLAWS_TENTACLE trait
2103: increases damage with VINES2 and VINES3 traits
monattack.cpp
mattack::pull_metal_weapon
297: strength below 4 always loses pulled metal weapon
298: increases resistance to losing pulled metal weapon
mutation.cpp
Character::mutation_effect
161-168: str_max affects STR_ALPHA mutation results
Character::mutation_loss_effect
243-250: str_max affects STR_ALPHA mutation loss results
player::activate_mutation
411,415,419: increases volume of shouting mutations
npc.cpp
npc::randomize
497: str_max increases base hp
npc::player_danger
1269: increases player's apparent danger to NPCs (BUG? str_cur vs str_max)
1270: str_max increases player's apparent danger to NPCs
npc::form_opinion
1128-1135: str_max increases NPC fear of player
npcmove.cpp
npc::confident_range
888: decreases throwing confidence
npc::update_path
991,998: allows pathing through bashable obstacles
npc::can_move_to
1009: allow movement into bashable obstacles
npc::move_to
1049, 1052: reduces recoil faster while moving (BUG? inconsistent with plmove)
1115, 1117: bash bashable obstacles
npc::move_pause
1296,1299: reduces recoil faster while pausing
npc::go_to_destination
2260,2263: allows pathing through bashable obstacles
npctalk.cpp
dialogue::gen_responses
1589: strength above 10 allows punching response to TALK_EVAC_MERCHANT_ASK_JOIN
player.cpp
player::swim_speed
1729: increases swimming speed with PAWS trait
1732: increases swimming speed with PAWS_LARGE trait
1734: increases swimming speed with swim_fins shoes
1738: increases swimming speed with WEBBED trait
1741: increases swimming speed with TAIL_FIN trait
1759: increases swimming speed
player::pause
4323: reduces recoil faster while pausing
player::throw_range
4422: allow throwing heavier objects
4425: increases throw range
4432: increases throw range cap
player::knock_back_from
5057-5062: increases size of monsters damaged and knocked back when player is knocked into them
player::hardcoded_effects
5877: decreases torso damage when vomiting fungal infection
6019: increases volume of hallucination babbling
6384: increases number of dermatik larvae
player::suffer
7455: increases volume of schizophrenic screaming
7488,7491,7494: increases volume of shouting mutations (BUG: duplicate code player::activate_mutation)
ranged.cpp
game::throw_item
620: increases throwing deviation
653: increases throwing damage
664: increases chance of shattering thrown glass
recoil_add
1431: decreases recoil when shooting
trapfunc.cpp
trapfunc::shotgun
300: str_max increases chance of being hit by two shotgun trap shots
trapfunc::sinkhole
same(?) as construct::done_dig_stair, but for water instead of lava
vehicle.cpp
vehicle::acceleration
2986: increases maximum muscle-powered vehicle weight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment