Skip to content

Commit 3428291

Browse files
committed
Unbroken UIDev
1 parent 72e1292 commit 3428291

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

BossMod/Config/ConfigUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public ConfigUI(ConfigRoot config, WorldState ws)
4040
_root = config;
4141
_ws = ws;
4242

43-
_exSheet = Service.DataManager.GetExcelSheet<ExVersion>()!;
43+
_exSheet = Service.LuminaGameData!.GetExcelSheet<ExVersion>()!;
4444

4545
Dictionary<Type, UINode> nodes = new();
4646
foreach (var n in config.Nodes)

BossMod/Modules/ModuleRegistry.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ public enum HuntRanks : byte
144144

145145
if (cfcID is 735 or 760 or 761 or 778) // bozja et al
146146
{
147-
contentType = Service.DataManager.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(6)!.Name;
148-
contentIcon = (uint)Service.DataManager.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(6)!.Icon;
147+
contentType = Service.LuminaGameData!.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(6)!.Name;
148+
contentIcon = (uint)Service.LuminaGameData!.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(6)!.Icon;
149149
}
150150
else if (cfcRow.ShortCode.RawString.StartsWith("aoz")) // masked carnivale
151151
{
152-
contentType = Service.DataManager.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(8)!.Name;
153-
contentIcon = (uint)Service.DataManager.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(8)!.Icon;
152+
contentType = Service.LuminaGameData!.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(8)!.Name;
153+
contentIcon = (uint)Service.LuminaGameData!.GetExcelSheet<CharaCardPlayStyle>()!.GetRow(8)!.Icon;
154154
carnivaleStage = int.Parse(Regex.Replace(cfcRow.ShortCode.RawString, @"\D", "").TrimStart('0'));
155155
}
156156
else
@@ -235,15 +235,15 @@ private Info(Type moduleType, Type statesType)
235235

236236
static ModuleRegistry()
237237
{
238-
_cfcSheet = Service.DataManager.GetExcelSheet<ContentFinderCondition>()!;
239-
_contentTypeSheet = Service.DataManager.GetExcelSheet<ContentType>()!;
240-
_nmSheet = Service.DataManager.GetExcelSheet<NotoriousMonster>()!;
241-
_nmtSheet = Service.DataManager.GetExcelSheet<NotoriousMonsterTerritory>()!;
242-
_fateSheet = Service.DataManager.GetExcelSheet<Fate>()!;
243-
_playStyleSheet = Service.DataManager.GetExcelSheet<CharaCardPlayStyle>()!;
244-
_territorySheet = Service.DataManager.GetExcelSheet<TerritoryType>()!;
245-
_dynamicEventSheet = Service.DataManager.GetExcelSheet<DynamicEvent>()!;
246-
_npcNamesSheet = Service.DataManager.GetExcelSheet<BNpcName>()!;
238+
_cfcSheet = Service.LuminaGameData!.GetExcelSheet<ContentFinderCondition>()!;
239+
_contentTypeSheet = Service.LuminaGameData!.GetExcelSheet<ContentType>()!;
240+
_nmSheet = Service.LuminaGameData!.GetExcelSheet<NotoriousMonster>()!;
241+
_nmtSheet = Service.LuminaGameData!.GetExcelSheet<NotoriousMonsterTerritory>()!;
242+
_fateSheet = Service.LuminaGameData!.GetExcelSheet<Fate>()!;
243+
_playStyleSheet = Service.LuminaGameData!.GetExcelSheet<CharaCardPlayStyle>()!;
244+
_territorySheet = Service.LuminaGameData!.GetExcelSheet<TerritoryType>()!;
245+
_dynamicEventSheet = Service.LuminaGameData!.GetExcelSheet<DynamicEvent>()!;
246+
_npcNamesSheet = Service.LuminaGameData!.GetExcelSheet<BNpcName>()!;
247247

248248
foreach (var t in Utils.GetDerivedTypes<BossModule>(Assembly.GetExecutingAssembly()).Where(t => !t.IsAbstract && t != typeof(DemoModule)))
249249
{

0 commit comments

Comments
 (0)