![]() |
#1 |
Apprentice
Join Date: Dec 2019
Location: Mexico, undisclosed location
Posts: 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!? |
![]() |
![]() |
![]() |
#2 |
Apprentice
Join Date: Dec 2019
Location: Mexico, undisclosed location
Posts: 79
![]() |
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.... |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Food and weight | fph | Idle chatter | 3 | April 13, 2017 16:14 |
Food consumption vs magic | hein | Vanilla | 3 | January 27, 2017 00:25 |
Why is food needed? | stabbo | Vanilla | 45 | December 20, 2010 23:49 |
Lack of food | AR_chie | Variants | 10 | October 7, 2008 08:40 |
Savefile breakage happening soon | takkaria | Vanilla | 11 | May 17, 2008 19:04 |