about godabil piety


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

Temple Termagant

Posts: 7

Joined: Friday, 8th November 2013, 07:29

Post Saturday, 23rd November 2013, 06:14

about godabil piety

I know random2(num) function is 0 to num-1

but i can't understand screenshots

piety cost fomula is
val + random2((val + 1) / 2 + 1)

and makhleb's greater servant value is 5

my calculation is 5+random2(4)

so result is 5~8

but it's not real

ingame experiment result is 4~7

what is my mistake?

I'm confused ...

I feel like golden eyes victim
Attachments
2.JPG
2.JPG (14.9 KiB) Viewed 898 times
1.JPG
1.JPG (16.59 KiB) Viewed 898 times

Ziggurat Zagger

Posts: 11111

Joined: Friday, 8th February 2013, 12:00

Post Saturday, 23rd November 2013, 06:41

Re: about godabil piety

Ignore the comment and check source code. It is
const int piety_cost =
_scale_piety_cost(abil.ability, abil.piety_cost.cost());

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 23 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.