- Posts: 7
- Thank you received: 0
May be a bug...
- mr514
- Topic Author
- Offline
- New Member
-
Less
More
1 year 2 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.
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.
- thomas
-
- Offline
- Administrator
-
Less
More
- Posts: 816
- Thank you received: 159
1 year 2 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#L45So, working as intended.
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))
The following user(s) said Thank You: mr514
Please Log in or Create an account to join the conversation.
- mr514
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
Time to create page: 0.105 seconds