charred-black icon indicating copy to clipboard operation
charred-black copied to clipboard

Adding wizard lifepath leads needs to deal with missing leads/key_leads

Open mtsr opened this issue 3 years ago • 0 comments

This fix is needed because leads for Evil Necromancer will be broken otherwise (it will end up as "key_leads": true, "leads": true).

https://github.com/modality/charred-black/blob/d588af2a8b7d68d089acc27f49c6f3b8a2c9f4ef/src/lib/data/wizard.rb#L83-L84

should be (something like) this:

                man[man_set][man_lp]['key_leads'] = man[man_set][man_lp]['key_leads'] || []
                man[man_set][man_lp]['key_leads'] |= [wiz_set]
                man[man_set][man_lp]['leads'] = man[man_set][man_lp]['leads'] || []
                man[man_set][man_lp]['leads'] |= [leads_short[wiz_set]]

mtsr avatar Feb 19 '22 13:02 mtsr