Skip to content

Commit cf3e1f0

Browse files
authored
Merge pull request #2 from DoobesURU/GoMePubNewNexus
Go me pub new nexus
2 parents 15a12ee + 72d5a51 commit cf3e1f0

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

Scripts/Python/islmRegisterNexusLink.py

+14
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,20 @@ def OnNotify(self,state,id,events):
108108
vault.addChronicleEntry("GotLinkToKveerPublic",1,"yes")
109109
PtDebugPrint("islmRegisterNexusLink.OnNotify(): Chronicle entry 'GotLinkToKveerPublic' not present, adding entry and setting to 'yes'")
110110
PtSendKIMessage(kKILocalChatStatusMsg,PtGetLocalizedString("KI.Messages.NexusLinkAdded"))
111+
# Hacking away for GoMe Pub
112+
if stationName.value == "GoMePubNew":
113+
entryName = "GotLinkToGoMePublic"
114+
entry = vault.findChronicleEntry(entryName)
115+
if entry is not None:
116+
entryValue = entry.chronicleGetValue()
117+
if entryValue != "yes":
118+
entry.chronicleSetValue("yes")
119+
entry.save()
120+
PtDebugPrint("islmRegisterNexusLink.OnNotify(): Chronicle entry 'GotLinkToGoMePublic' already added, setting to 'yes'")
121+
else:
122+
vault.addChronicleEntry("GotLinkToGoMePublic",1,"yes")
123+
PtDebugPrint("islmRegisterNexusLink.OnNotify(): Chronicle entry 'GotLinkToGoMePublic' not present, adding entry and setting to 'yes'")
124+
PtSendKIMessage(kKILocalChatStatusMsg,PtGetLocalizedString("KI.Messages.NexusLinkAdded"))
111125
else:
112126
# just business-as-usual here
113127
self.avatar = 0

Scripts/Python/nxusBookMachine.py

+19-3
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@
203203
}
204204

205205

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"]
207207
kHiddenCityLinks = ["islmPalaceBalcony03", "KadishGallery", "islmPalaceBalcony02", "islmDakotahRoof", ]
208-
kHiddenAgesIfInvited = ["BahroCave", "PelletBahroCave", "Pellet Cave", "LiveBahroCave", "LiveBahroCaves", "Myst", "Tiam"]
208+
kHiddenAgesIfInvited = ["BahroCave", "PelletBahroCave", "Pellet Cave", "LiveBahroCave", "LiveBahroCaves", "Myst"]
209209

210210
#public ages SDL variables to be read from Vault on start (max. population, is link visible)
211211
kAgeSdlVariables = {
@@ -214,6 +214,7 @@
214214
'guildPub' : ('MaxGuildPubPop', None),
215215
'Neighborhood02' : ('MaxKirelPop', 'nxusShowKirel'),
216216
'Kveer' : ('MaxKveerPublicPop', None),
217+
'GoMePubNew' : ('MaxKirelPop', None),
217218
}
218219

219220
kGuildPubs = ["Cartographers", "Greeters", "Maintainers", "Messengers", "Writers"]
@@ -224,7 +225,8 @@
224225
"GuildPub-Maintainers" : "e8306311-56d3-4954-a32d-3da01712e9b5",
225226
"GuildPub-Messengers" : "9420324e-11f8-41f9-b30b-c896171a8712",
226227
"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"}
228230

229231
#id for ages descriptions
230232
kPublicAgesDescription = {
@@ -236,6 +238,7 @@
236238
'GuildPub-Maintainers' : ("Nexus.Messages.GuildPubFull", "Nexus.Messages.GuildPubPopulation"),
237239
'GuildPub-Messengers' : ("Nexus.Messages.GuildPubFull", "Nexus.Messages.GuildPubPopulation"),
238240
'GuildPub-Writers' : ("Nexus.Messages.GuildPubFull", "Nexus.Messages.GuildPubPopulation"),
241+
'GoMePubNew' : ("Nexus.Messages.GoMePubNewFull", "Nexus.Messages.GoMePubNewPopulation"),
239242
}
240243

241244
# hood sorting vars
@@ -344,6 +347,7 @@ def __init__(self):
344347
'guildPub' : AgeData(ageFilename = '', defaultMaxPop = 0, linkVisible = 0),
345348
'Neighborhood02' : AgeData(ageFilename = 'Neighborhood02', defaultMaxPop = 100, linkVisible = 0),
346349
'Kveer' : AgeData(ageFilename = 'Kveer', defaultMaxPop = 100, linkVisible = 0),
350+
'GoMePubNew' : AgeData(ageFilename = 'GoMePubNew', defaultMaxPop = 100, linkVisible = 0),
347351
}
348352

349353
self.categoryLinksList = {
@@ -438,6 +442,15 @@ def OnServerInitComplete(self):
438442
self.publicAges['Kveer'].linkVisible = True
439443
else:
440444
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!")
441454

442455

443456
def __del__(self):
@@ -1297,6 +1310,9 @@ def IUpdateCityLinksList(self):
12971310
#special case: and another one for GuildPub name
12981311
elif hasattr(ageData, 'guild'):
12991312
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"
13001316
else:
13011317
displayName = selectedInfo.getDisplayName()
13021318

0 commit comments

Comments
 (0)