Closed toconnell closed 5 years ago
Recreation:
settlementSheet.js?v=2.84.1603:365 nemesis handle is null! $scope.addNemesis @ settlementSheet.js?v=2.84.1603:365
And the logs went:
[2019-01-22 09:34:17] DEBUG: [OPTIONS] https://192.168.0.110:8013/settlement/add_expansions/5c4737464af5ca21a8649ee3 response in 0:00:00.002608
[2019-01-22 09:34:17] DEBUG: settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3] initialize() -> in 0:00:00.179889
[2019-01-22 09:34:17] INFO: settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3] event: demo@kdm-manager.com added 'Slenderman' to settlement expansions.
[2019-01-22 09:34:17] INFO: settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3] event: demo@kdm-manager.com removed 'Nemesis Encounter: King's Man Lvl 1' from settlement timeline (LY 9).
[2019-01-22 09:34:17] INFO: settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3] event: demo@kdm-manager.com added 'Nemesis Encounter' to settlement timeline (LY 9).
[2019-01-22 09:34:17] INFO: Removed 'kings_man' from settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3] nemesis monsters.
[2019-01-22 09:34:17] INFO: Added 'Slenderman' expansion to settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3]
[2019-01-22 09:34:17] INFO: Successfully added 1 expansions to settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3]
[2019-01-22 09:34:17] INFO: Saved settlements object 'Exp TL Updates' [5c4737464af5ca21a8649ee3] to mdb.settlements successfully!
The defeated monsters string stayed (unsurprisingly), but as the logs promised, the nemesis and any record of it is gone.
If I re-add it, which is possible (but still throws the nemesis handle is null
error), and check the Lvl 1 box (also possible), it survives a refresh.
LY6 appears to be unmodified: Armored Strangers is still there. LY9 has its event removed, however, so current years gets touched: the Slenderman L&9 event is subbed in.
Current feel: expansion content should have some kind of flag that indicates what to do if adding it to an existing settlement, since that usually follows special rules.
[edit]Maybe an attribute of a TL event that says "this is the intro event for a settlement whose TL is older than the expansion content's intro year."[/edit]
OK, we're adding two new attributes to expansion assets: maximum_intro_ly
and late_intro_event
, which we will use to determine whether to do the 'new settlement' style content add or the content add where you're at or after the LY the book recommends.
Testing it now.
Works as expected: "It's Already Here' gets added to LY10 (of the LY9 tester settlement). Nemesis monster list is unmodified and other King's Man encounter stay on the Timeline.
I'm going to update the rest of the expansions that have recommended add procedures and call it a day on this one.
committed to main in e0b79a8ee2f9b63f4c4fb615a4ecdeecd35d446c
This is from email, re: the Slenderman: