Welcome to the Builder Academy

Question May be a bug...

More
14 May 2022 16:45 #10058 by mr514
May be a bug... was created by mr514
Saving throws seem to like the value of 0.
I grabbed the stock code to test and even the implementor using stat gets zeros.
Good luck all, be safe.

Please Log in or Create an account to join the conversation.

More
15 May 2022 15:26 #10060 by thomas
Replied by thomas on topic May be a bug...
Well, unless you're actually using armor or other stuff that alters the saving throw, it is correct to be 0. The code uses the saving_throws() function to find the _base_ saving throw and the adjusts it by your "personal" changes:

github.com/tbamud/tbamud/blob/5305783e1b...f342/src/magic.c#L45
Code:
save = saving_throws(class_sav, type, GET_LEVEL(ch)); save += GET_SAVE(ch, type); save += modifier; /* Throwing a 0 is always a failure. */ if (MAX(1, save) < rand_number(0, 99))
So, working as intended.
The following user(s) said Thank You: mr514

Please Log in or Create an account to join the conversation.

More
17 May 2022 13:08 #10061 by mr514
Replied by mr514 on topic May be a bug...
Thanks, sorry about that!

Please Log in or Create an account to join the conversation.

Time to create page: 0.216 seconds