|
203 | 203 | }
|
204 | 204 |
|
205 | 205 |
|
206 |
| -kHiddenPersonalAges = ["Personal", "Nexus", "Neighborhood", "city", "AvatarCustomization", "Cleft", "BaronCityOffice", "BahroCave", "PelletBahroCave", "Kveer", "Myst", "LiveBahroCaves", "LiveBahroCave", "Tiam"] |
| 206 | +kHiddenPersonalAges = ["Personal", "Nexus", "Neighborhood", "city", "AvatarCustomization", "Cleft", "BaronCityOffice", "BahroCave", "PelletBahroCave", "Kveer", "Myst", "LiveBahroCaves", "LiveBahroCave"] |
207 | 207 | kHiddenCityLinks = ["islmPalaceBalcony03", "KadishGallery", "islmPalaceBalcony02", "islmDakotahRoof", ]
|
208 |
| -kHiddenAgesIfInvited = ["BahroCave", "PelletBahroCave", "Pellet Cave", "LiveBahroCave", "LiveBahroCaves", "Myst", "Tiam"] |
| 208 | +kHiddenAgesIfInvited = ["BahroCave", "PelletBahroCave", "Pellet Cave", "LiveBahroCave", "LiveBahroCaves", "Myst"] |
209 | 209 |
|
210 | 210 | #public ages SDL variables to be read from Vault on start (max. population, is link visible)
|
211 | 211 | kAgeSdlVariables = {
|
|
214 | 214 | 'guildPub' : ('MaxGuildPubPop', None),
|
215 | 215 | 'Neighborhood02' : ('MaxKirelPop', 'nxusShowKirel'),
|
216 | 216 | 'Kveer' : ('MaxKveerPublicPop', None),
|
| 217 | +'GoMePubNew' : ('MaxKirelPop', None), |
217 | 218 | }
|
218 | 219 |
|
219 | 220 | kGuildPubs = ["Cartographers", "Greeters", "Maintainers", "Messengers", "Writers"]
|
|
224 | 225 | "GuildPub-Maintainers" : "e8306311-56d3-4954-a32d-3da01712e9b5",
|
225 | 226 | "GuildPub-Messengers" : "9420324e-11f8-41f9-b30b-c896171a8712",
|
226 | 227 | "GuildPub-Writers" : "5cf4f457-d546-47dc-80eb-a07cdfefa95d",
|
227 |
| - "Kveer" : "68e219e0-ee25-4df0-b855-0435584e29e2"} |
| 228 | + "Kveer" : "68e219e0-ee25-4df0-b855-0435584e29e2", |
| 229 | + "GoMePubNew" : "d002da26-db26-53f1-bdc0-a05a84274d5c"} |
228 | 230 |
|
229 | 231 | #id for ages descriptions
|
230 | 232 | kPublicAgesDescription = {
|
|
236 | 238 | 'GuildPub-Maintainers' : ("Nexus.Messages.GuildPubFull", "Nexus.Messages.GuildPubPopulation"),
|
237 | 239 | 'GuildPub-Messengers' : ("Nexus.Messages.GuildPubFull", "Nexus.Messages.GuildPubPopulation"),
|
238 | 240 | 'GuildPub-Writers' : ("Nexus.Messages.GuildPubFull", "Nexus.Messages.GuildPubPopulation"),
|
| 241 | + 'GoMePubNew' : ("Nexus.Messages.GoMePubNewFull", "Nexus.Messages.GoMePubNewPopulation"), |
239 | 242 | }
|
240 | 243 |
|
241 | 244 | # hood sorting vars
|
@@ -344,6 +347,7 @@ def __init__(self):
|
344 | 347 | 'guildPub' : AgeData(ageFilename = '', defaultMaxPop = 0, linkVisible = 0),
|
345 | 348 | 'Neighborhood02' : AgeData(ageFilename = 'Neighborhood02', defaultMaxPop = 100, linkVisible = 0),
|
346 | 349 | 'Kveer' : AgeData(ageFilename = 'Kveer', defaultMaxPop = 100, linkVisible = 0),
|
| 350 | + 'GoMePubNew' : AgeData(ageFilename = 'GoMePubNew', defaultMaxPop = 100, linkVisible = 0), |
347 | 351 | }
|
348 | 352 |
|
349 | 353 | self.categoryLinksList = {
|
@@ -438,6 +442,15 @@ def OnServerInitComplete(self):
|
438 | 442 | self.publicAges['Kveer'].linkVisible = True
|
439 | 443 | else:
|
440 | 444 | PtDebugPrint("nxusBookMachine.OnServerInitComplete(): chron says no link to public Kveer yet, so sorry")
|
| 445 | + # copy pasta for the Pub |
| 446 | + entrygmpn = vault.findChronicleEntry("GotLinkToGoMePublic") |
| 447 | + if entrygmpn is not None: |
| 448 | + entryValue02 = entrygmpn.chronicleGetValue() |
| 449 | + if entryValue02 == "yes": |
| 450 | + PtDebugPrint("nxusBookMachine.OnServerInitComplete(): chron says you have the link to public GoMePub, hooray!") |
| 451 | + self.publicAges['GoMePubNew'].linkVisible = True |
| 452 | + else: |
| 453 | + PtDebugPrint("nxusBookMachine.OnServerInitComplete(): chron says no link to public GoMePub yet, so go to Chiso!") |
441 | 454 |
|
442 | 455 |
|
443 | 456 | def __del__(self):
|
@@ -1297,6 +1310,9 @@ def IUpdateCityLinksList(self):
|
1297 | 1310 | #special case: and another one for GuildPub name
|
1298 | 1311 | elif hasattr(ageData, 'guild'):
|
1299 | 1312 | displayName = "The %s' Pub" % (ageData.guild)
|
| 1313 | + #another special case for the new GoMe Pub |
| 1314 | + elif ageData.ageFilename == 'GoMePubNew': |
| 1315 | + displayName = "New Messengers Pub" |
1300 | 1316 | else:
|
1301 | 1317 | displayName = selectedInfo.getDisplayName()
|
1302 | 1318 |
|
|
0 commit comments