YACQ: yet another code question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • will_asher
    DaJAngband Maintainer
    • Apr 2007
    • 1124

    YACQ: yet another code question

    I'm looking in the code (v3.0.8 because that's what DaJAngband is based on) about melee damage. For DaJAngband, I want to make very light weapons have no strength bonus to damage, and very heavy weapons have extra strength bonus (to compensate a little bit for multiple blows with light weapons). Anyway, looking in the code, it doesn't look like there is any strength bonus to damage. Is this correct or am I just missing something in the code?
    (I'm looking in cmd1.c, should I be looking somewhere else?)

    I always thought that there was a strength bonus to melee damage.
    Will_Asher
    aka LibraryAdventurer

    My old variant DaJAngband:
    http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)
  • takkaria
    Veteran
    • Apr 2007
    • 1951

    #2
    Originally posted by will_asher
    I'm looking in the code (v3.0.8 because that's what DaJAngband is based on) about melee damage. For DaJAngband, I want to make very light weapons have no strength bonus to damage, and very heavy weapons have extra strength bonus (to compensate a little bit for multiple blows with light weapons). Anyway, looking in the code, it doesn't look like there is any strength bonus to damage. Is this correct or am I just missing something in the code?
    (I'm looking in cmd1.c, should I be looking somewhere else?)

    I always thought that there was a strength bonus to melee damage.
    The code in question will be in xtra1.c:calc_bonuses(). In particular, the line "p_ptr->to_d += ((int)(adj_str_td[p_ptr->stat_ind[A_STR]]) - 128);".
    takkaria whispers something about options. -more-

    Comment

    • will_asher
      DaJAngband Maintainer
      • Apr 2007
      • 1124

      #3
      there it is, thanks
      the way stats are done in the code is pretty complicated because of all that non-linear 18/xx stuff.
      Will_Asher
      aka LibraryAdventurer

      My old variant DaJAngband:
      http://sites.google.com/site/dajangbandwebsite/home (defunct and so old it's forked from Angband 3.1.0 -I think- but it's probably playable...)

      Comment

      Working...
      😀
      😂
      🥰
      😘
      🤢
      😎
      😞
      😡
      👍
      👎