Mastery forced Player.HaveEitr true and skipped Player.UseEitr, and neither is what refuses the attack. Attack.Start gates on Character.TryUseEitr, whose first test is GetMaxEitr() == 0 - an Aswid carrying no eitr food has a maximum of zero, so the cast was rejected there and HaveEitr was never consulted at all. That is also why it looked intermittent: it appeared to work for anyone who happened to be eating eitr food and failed for exactly the player it was written for, one leaning on blood magic without eitr. TryUseEitr only gates - the spend is a separate UseEitr call - so returning true there costs nothing, and the existing UseEitr prefix still blocks the drain. The health price is untouched; it is meant to be the whole price. The local-Aswid-holding-blood-magic test was written out three times and now lives in one helper, so the weapon lookup cannot drift between them. |
||
|---|---|---|
| .. | ||
| AswidExtraFoodUI.cs | ||
| AswidFoodManager.cs | ||
| AswidPatches.cs | ||
| AswidProgression.cs | ||
| AswidRace.cs | ||
| AswidSpectralClaw.cs | ||
| AswidStatusEffects.cs | ||
| AswidThrall.cs | ||
| BatFormBehavior.cs | ||