mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-12 22:45:31 -04:00
Galaxy map will now show for terminals
This commit is contained in:
@@ -8,9 +8,13 @@ def createRadial(core, owner, target, radials):
|
||||
def handleSelection(core, owner, target, option):
|
||||
|
||||
if option == 21 and target:
|
||||
tpm = EnterTicketPurchaseModeMessage()
|
||||
tpm = EnterTicketPurchaseModeMessage(owner.getPlanet().getName(), core.mapService.getClosestCityName(owner))
|
||||
owner.getClient().getSession().write(tpm.serialize())
|
||||
#print ('Sent EnterTicketPurchaseModeMessage!')
|
||||
#print ('Planet name: ' + owner.getPlanet().getName())
|
||||
#print ('City name: ' + core.mapService.getClosestCityName(owner))
|
||||
|
||||
|
||||
|
||||
return
|
||||
|
||||
def handleSUI(owner, window, eventType, returnList):
|
||||
|
||||
@@ -21,7 +21,11 @@ def addPoints(core, planet):
|
||||
if planet.getName() == 'tatooine':
|
||||
tatooinePoints(core, planet)
|
||||
if planet.getName() == 'yavin4':
|
||||
yavin4Points(core, planet)
|
||||
yavin4Points(core, planet)
|
||||
if planet.getName() == 'mustafar':
|
||||
mustafarPoints(core,planet)
|
||||
if planet.getName() == 'kashyyyk_main':
|
||||
kashyyykPoints(core, planet)
|
||||
return
|
||||
|
||||
def corelliaPoints(core, planet):
|
||||
@@ -100,4 +104,15 @@ def yavin4Points(core, planet):
|
||||
trvSvc.addTravelPoint(planet, "Imperial Base", 4033, -6234)
|
||||
trvSvc.addTravelPoint(planet, "Labor Outpost", -6939, -5706)
|
||||
trvSvc.addTravelPoint(planet, "Mining Outpost", -277, 4879)
|
||||
return
|
||||
return
|
||||
|
||||
def mustafarPoints(core, planet):
|
||||
trvSvc = core.travelService
|
||||
|
||||
trvSvc.addTravelPoint(planet, "Mensix Mining Facility", 4033, -6234)
|
||||
return
|
||||
|
||||
def kashyyykPoints(core, planet):
|
||||
trvSvc = core.travelService
|
||||
trvSvc.addTravelPoint(planet, "Kachiro Starport", 4033, -6234)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user