BL Coding Hardcoded bandit party limit of 3 stacks

Users who are viewing this thread

tase

Recruit
Obviously nowhere to report this as a problem, just gonna chuck this in the pile of Q&A.

Anyway, anything in the party template beyond the 3rd stack is ignored.

MobileParty.cs
C#:
        private void FillPartyStacks(PartyTemplateObject pt, PartyTypeEnum partyType, int troopNumberLimit = -1)
        {
            switch (partyType)
            {
            case PartyTypeEnum.Bandit:
            {
(...)
                AddElementToMemberRoster(pt.Stacks[0].Character, MBRandom.RoundRandomized(f));
                if (pt.Stacks.Count > 1)
                {
                    AddElementToMemberRoster(pt.Stacks[1].Character, MBRandom.RoundRandomized(f2));
                }
                if (pt.Stacks.Count > 2)
                {
                    AddElementToMemberRoster(pt.Stacks[2].Character, MBRandom.RoundRandomized(f3));
                }
                return;
            }
(...)
 

Яowan

Grandmaster Knight
M&BWBNW
Actually, if you do encounter any bugs/issues you can report said issues here, as the developers do actively look into said reports.
 
Upvote 0
Top Bottom