[BUG] Wish bookcasting on darknight for C- champions doesn't benefit from lower costs.
issueid=2735 02-27-2014 11:22 PM
Ancient Member
Number of reported issues by Blasphemous: 110
[BUG] Wish bookcasting on darknight for C- champions doesn't benefit from lower costs.

Here's the situation:

I had a plan to make an archmage and then complete the game via ultimate chaos god ending.
Candle Gray Elven Wizard was selected for this purpose.
Things went well: did all the right quests got all the important items, maxed out char level.

Now I have level 50, C- crowned chaotic champion, with 940 HP, 1470 PP, blessed spellbook of wish - the spell is already learned (230 charges) - great book caster talent has been obtained and it is darknight.
From my calculations based on Ancardia Wiki, bookcasting wish in this situation should cost 2250PP
Base cost of 9000 PP (3x3000 for bookcasting) gets first reduced to 4500 due to great book caster multiplier, which is 1.5 (so 9000x1.5=4500).
Then (or before, it's irrelevant) the darknight reduction is applied - further bringing bookcasting costs down to 50% (2250 PP) of the previous value (4500).
Given that the rough ratio of HP-PP conversion for the purpose of bookcasting is currently about ~1.9 (it's actually 1.9157, but let's dispense with the decimals), I should get this:

Wish cost 2250 = 1470 PP + HP

Since HP counts for almost twice the value of PP, we can assume HP-PP conversion to be: 940*1.9=1786

Thus the final equation:

1470PP + 780PP(from HP) = 2250 <- this is where the wish has been bookcast.

So I should have 0 PP and [(940*1.9) - 780] / 1.9 = ~530 HP left after this, right?

Then how is this possible my character has died?
The final score shows -620 HP.

Of course I have checked *everything* else.
No special rooms, no corruptions, no items that modify attributes, save for red trident, GoGS, elemental gauntlets and orb of mana.
Typical archmage setup that I have successfully used on the previous one.
No intrinsics that impact casting or pp/hp values, no cursing or dooming, etc.



My current conclusion is this: -620(940) HP would suggest that over 3000 PP were drained from HP after 1500 was drained normally from PP.
This would in turn mean that the real bookcast cost is still 4500 so clearly one of the two reducers did not work (as they typically stack).
I've decided to wait 5 days, to be sure darknight has passed. After bookcasting wish again, it turns out the negative HP is *again* 620.
This means that darknight cast cost reduction was not applied when it should have been, though I can't be 100% certain this is the core of the problem.

I have copied the savefile before this occurred because I'm trying to understand what happened. Any suggestions?
I know for sure that I had almost exactly the same HP and PP values when I made an L+ archmage in the very same pre20.
Calculations were done properly then and I had no surprises - each initial bookcasting of wish left me with 400-500 HP back then, which further supports the fact that the cost was indeed 2250 (great book caster + silvernight)

But he situation here is different for some reason.
Is there something I have overlooked?
Some C- penalties perhaps?
Maybe there are some bonuses for L+ characters that even further reduce casting costs which I did not realize existed?

Perhaps the simple explanation is that C- character in question has just discovered a bug where darknight does not benefit the PC as advertised?
Issue Details
Issue Number 2735
Project ADOM (Ancient Domains Of Mystery)
Category Windows 7
Status Creator Feedback
Priority 7
Affected Version ADOM 1.2.0 pre 20
Fixed Version (none)
Milestone (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




02-27-2014 11:33 PM
Ancient Member

02-28-2014 07:48 AM
Ancient Member
Ah yes, thanks for this link. Seems like other players also noticed that darknight doesn't affect wish bookcasting for chaotics.
I'm wondering if it should still be considered a bug or rather a feature?

02-28-2014 07:59 AM
Ancient Member
Well, silvernight and darknight are separate days. It is not to say the one should be the exact opposite of the other. IIRC other spells are still reduced in PP cost for chaotics on darknight. So, maybe TB specifically coded wish to not be reduced.

Only he can answer though.

02-28-2014 08:25 AM
Ancient Member
Yeah, I'm hoping to attract TB's attention to this so maybe he can provide some clarification.
As for darknight and silvernight - I do think they are the exact opposite, just like C is the opposite of L.
This should be reflected in wish bookcasting costs equally, if only for the sake of consistency.

+ Reply