food breakage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eastwind
    Apprentice
    • Dec 2019
    • 79

    food breakage

    I was messing around a little with ammunition breakage and had a breakpoint set in player-attack.c:breakage_chance().

    Imagine my surprise when I ate some food and hit my breakpoint!?
  • eastwind
    Apprentice
    • Dec 2019
    • 79

    #2
    It turns out that routine is called lots of times. For example I hit the breakpoint when casting a spell, after selecting the book, before even selecting the spell, i.e. after "ma". It's called from some swiss-army-knife routine that's trying to be lots of different things for different callers. Most of the time the breakage chance looked up is never used.

    But it's all working as coded....

    Comment

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