I'm not very sure if it really is Baselib's bug, may need a check. But my original locked option function is working properly
here is the partly log:
[ERROR] System.NullReferenceException: Object reference not set to an instance of an object.
at MegaCrit.Sts2.Core.Models.CharacterModel.AddDetailsTo(LocString str)
at MegaCrit.Sts2.Core.Events.EventOption.AddLocVars(EventModel eventModel)
at MegaCrit.Sts2.Core.Events.EventOption..ctor(EventModel eventModel, Func1 onChosen, String textKey, IEnumerable1 hoverTips)
at MegaCrit.Sts2.Core.Events.EventOption..ctor(EventModel eventModel, Func`1 onChosen, String textKey, IHoverTip[] hoverTips)
at BaseLib.Abstracts.CustomEventModel.LockedOption(String locKey, String pageKey, IHoverTip[] tips)
at RanInSpire.scripts.events.LuthiersShopEvent.GenerateInitialOptions() // my mod
I'm not very sure if it really is Baselib's bug, may need a check. But my original locked option function is working properly
here is the partly log:
[ERROR] System.NullReferenceException: Object reference not set to an instance of an object.
at MegaCrit.Sts2.Core.Models.CharacterModel.AddDetailsTo(LocString str)
at MegaCrit.Sts2.Core.Events.EventOption.AddLocVars(EventModel eventModel)
at MegaCrit.Sts2.Core.Events.EventOption..ctor(EventModel eventModel, Func
1 onChosen, String textKey, IEnumerable1 hoverTips)at MegaCrit.Sts2.Core.Events.EventOption..ctor(EventModel eventModel, Func`1 onChosen, String textKey, IHoverTip[] hoverTips)
at BaseLib.Abstracts.CustomEventModel.LockedOption(String locKey, String pageKey, IHoverTip[] tips)
at RanInSpire.scripts.events.LuthiersShopEvent.GenerateInitialOptions() // my mod