MantisBT - VCMI
View Issue Details
0003107VCMIGUI - Town screenpublic2020-02-28 00:302020-03-06 16:39
domek 
 
normalminoralways
newopen 
0.99 
 
0003107: Order of creatures
When you open a town view and look at all the miniatures of creatures in the bottom left side of the window you can see they are arranged by the order they are defined in the json file, in section "core:creatureGeneratorCommon".
This is wrong because they should be ordered by level, from 1 to 7.
No tags attached.
Issue History
2020-02-28 00:30domekNew Issue
2020-03-06 16:39domekNote Added: 0007879

Notes
(0007879)
domek   
2020-03-06 16:39   
A small update. It seems the order is defined in JSON file:
TownName -> town -> creatures
Still it's wrong. It should instead order creatures by its level, from 1 to 7.

If creatures are defined like this:
            "creatures" :
            [
                [ "penguin1", "penguin2" ],
                [ "cat1", "cat2" ],
                [ "nymph1", "nymph2" ],
                [ "tusk1", "tusk2" ],
                [ "elemental1", "elemental2" ],
                [ "dragon1", "dragon2"],
                [ "giant1", "giant2" ]
            ],

Then penguin is first even though the penguin is level 3 and cat is level 1.