May be a bug...

More
2 months 4 weeks ago #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
2 months 4 weeks ago #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
  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
2 months 3 weeks ago #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.099 seconds