User Tools

Site Tools


user:loggy:horrors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
user:loggy:horrors [2021/02/02 15:58]
loggy Astral Corruption and Cataclysm attacks on mages spending gems
user:loggy:horrors [2021/08/30 23:31] (current)
loggy
Line 1: Line 1:
-======= Horror Stuff =======+======= Loggy'Horror related subjects reverse engineering notes ======= 
 + 
 +See also: [[horror-seed]]
  
 The "global horror level" is defined as follows: The "global horror level" is defined as follows:
Line 14: Line 16:
     - If a province is involved, set this to (DRAIN scale in the province + 3) * 5     - If a province is involved, set this to (DRAIN scale in the province + 3) * 5
     - Add the haunted unit's horror marks * 20 to this     - Add the haunted unit's horror marks * 20 to this
-    - If the upgrade value is less than 500, the upgrade value is set to 500 + %%floor((upgrade value -500) / 5) +    - If the upgrade value is greater than 500, the upgrade value is set to 500 + %%floor((upgrade value -500) / 5) 
-    - Get the global horror level. If it is 1, consider it as if it were 3. Otherwise, set upgrade value to (upgrade value + floor(horror level / 2))%% * floor(horror level / 2)+    - Get the global horror level. If it is 1, consider it as if it were 3. Otherwise [if it was >1], set upgrade value to (upgrade value + floor(horror level / 2))%% * floor(horror level / 2)
   - If asking for a lesser horror:   - If asking for a lesser horror:
     - Get a random number 0-999     - Get a random number 0-999
Line 27: Line 29:
 === Astral Corruption and Cataclysm attacks === === Astral Corruption and Cataclysm attacks ===
  
-Technically, these happen any time the global horror level (as above) is greater than 1. They do not happen on things whose path is blood magic (but items with a mixed gem/slave component will still trigger for their gem part), nor do they happen to mindless or slave vessels+Technically, these happen any time the global horror level (as above) is greater than 1. They do not happen on things whose path is blood magic (but items with a mixed gem/slave component will still trigger for their gem part), nor do they happen to mindless or slave vessels. For items which take two different types of gems, the below is done independently for both parts. Cost reductions from forge bonuses apply to items.
  
   - Calc some number that I'm going to call the "horror score". This is (horror marks * 20 + 1) - province drain scale + (what I assume to be the number of gems you are spending)   - Calc some number that I'm going to call the "horror score". This is (horror marks * 20 + 1) - province drain scale + (what I assume to be the number of gems you are spending)
-  - Roll an exploding d(350/global horror level). If the horror score <= the die result, you get attacked+  - Roll an exploding d(350/global horror level). If the die result %%<=%% the horror score, you get attacked
     - Roll an exploding d250. If the horror score >= the result, you get attacked by a doom horror     - Roll an exploding d250. If the horror score >= the result, you get attacked by a doom horror
     - Otherwise, roll an exploding d100. If the horror score >= the result, you get attacked by a greater horror     - Otherwise, roll an exploding d100. If the horror score >= the result, you get attacked by a greater horror
     - Otherwise you get attacked by a lesser horror     - Otherwise you get attacked by a lesser horror
  
 +=== Horror Mark attacks (this time from the executable directly) ===
 +
 +  * Having more than 100 horror marks does nothing
 +  * Attractiveness = Markcount * 5 + 1
 +  * if (unit has the "holding a cursed item" affliction) , add a further markcount * 5
 +  * Attractiveness = ((Attractiveness - Drain scale) + Misfortune scale) * Global Horror Level
 +  * If random 0 - 999 < attractiveness, you get attacked
 +
 +=== Eater of Gods ===
 +
 +  * 50% to skip a given god
 +  * Can't happen if banished or negative HP
 +  * If global horror level 1:
 +    * Attack chance is (marks / 5) + 1%, to a max of 5% [BUT no effect if not horror marked]
 +  * Otherwise: Attack chance is (1% + 2% per mark) WITHOUT the horror mark requirement
 +
 +This means pretenders are 0.5% per turn to be attacked under AC or cataclysm even without marks
 +
 +This proceeds in ascending nation ID order, and exits once someone gets attacked (so only 1 attack per turn)
 +
 +
 +=== Hunter of Heroes ===
 +
 +(v5.54)
 +
 +Time to revisit this now I understand how the hall of fame actually works, and there's a bit more to it:
 +
 +  * A commander who is currently in the hall of fame (as in, on the screen when you open up the HoF display) is 25% to be considered.
 +  * Anyone with a heroic ability (including those above that rolled the 75% above to escape consideration) is 10% to be considered. [works out to be 32.5% if you are in the HoF]
 +  * If global horror level is 1:
 +    * attack chance = 2 * ((marks / 5) + 1), to a maximum of 10%
 +    * If you weren't marked, attack chance = 0%
 +  * Otherwise:
 +    * attack chance = 2 * ((marks * 2) + 1), to a maximum of 20%
 +  * Once the first guy gets attacked, abort. Two commanders cannot be visited this way in the same turn
 +
 +This proceeds in ascending commander ID order, and exits once someone gets attacked (so only 1 attack per turn)
 +
 +=== Cataclysm Doom Horror Map spawns ===
 +
 +  * Scabiel can spawn once the main cataclysm hits with some unknown conditions
 +  * 1 turn after the cataclysm, make a coin flip between Agon and Hruvar. If it's not on the map, spawn it
 +  * Every turn after the cataclysm, 25% to spawn Kurgi in any province at random
 +  * All the other doom horrors share the same province targeting function which seems to want to aim for thrones at random
 +
 +During AC or cataclysm, the horror deserter flag has a +75% chance to cause desertion unless the horror in question is on a throne.
 +
 +
 +=== Send lesser horror multiplier ===
 +
 +Is actually:
 +
 +[tens]d3 + [hundreds]d6 + [ones], non exploding
  
user/loggy/horrors.1612281523.txt.gz · Last modified: 2021/02/02 15:58 by loggy