Добавлено: Чт Dec 31, 2020 20:49
Заголовок сообщения: Re: How is site loot generated? [Eador: New Horizons]
So, what I could gather:
There are two stages for item loot – first one, when the list of fighting units is displayed after fight, and then a second one that comes after it. Which items appear where? And what's done when items dropped do not fit into item loot slots?
Items in combat result screen (
battle trophies) are given after winning a battle for killed units (I don't know if only for killed enemy units, but probably so).
Items in site capture screen (
site treasure) are given after winning a battle in site (no treasure after capturing province, fighting enemy guards and heroes, putting down a rebellion, etc).
When is item loot table defined in unit.var used? Only when fighting against enemy heroes' army? Or even when fighting against guards?
Additionally, in unit.var, each unit has its own item loot table defined for each level (1-20). Is this used at all? When, and how – as there can be up to 16 units on each side?
Levels there are levels of unit, they can be up to 30. I believe every item for current level and levels below actual level of killed unit is added to list of possible
battle trophies with specified possibilities.
each guard has its own list of items that it can drop, item drops are therefore calculated from this list – however, this cannot be all, as these items only include a very limited subset of all items (only item ids 1-131 are used, whereas current item list ends with item id 656)
I don't know for sure but I think it's additional list of items for
battle trophies in case if loot table is empty after processing all units in a guard.
Also fields "MaxLoot" and "LootPoss" there define maximum amount of
battle trophies items and possibility of getting them.
What does site's Treasure field in site.var mean?
I found a
quote from Adrageron (author of the game). Value of field "treasure" is added to value of field "power" in
guard.var and resulting number defines how valuable is
site treasure (the higher the better). If 0 or less then there is no treasure.
How is the particular guard determined from guard type? Randomly? Does it depend on site at all?
From my experience it's determined by level of province (how far a province is from starting position of any human/AI player). Capital province and its adjacent provinces (ring 1) are tier 1 provinces, ring 2 is tier 2, ring 3 is tier 3, ring 4 and higher are tier 4 provinces. Sometimes some site guards have higher tier for some reason (just for fun, I think). Also strategic resource without guard in province increases a tier of that province.
Also some sites have additional parameters — fields "ability" in
site.var. They are described
here (in Russian).
If site has "Ability: 17" then after capturing site a dialog from
encounter.var with a number from field "Param1" (below "Ability: 17") appears. Some of those dialogs are giving items that are placed directly into a castle treasury. Such dialogs are made for high tier sites with fixed guards to give fixed types of items (for example, killing Tarrask in its own site gives you high tier warrior items).