mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-05 20:12:51 -04:00
Changed Missionservice to use Datatable
Added Datatable for Terminaltypes Changed Terminals to use Datatable Changed Entertainermissions to use randomized Missions(still dont popup in Mission browser)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
|
||||
from resources.datatables import TerminalType
|
||||
def setup(core, object):
|
||||
core.mapService.addLocation(object.getPlanet(), '@map_loc_cat_n:terminal_mission', object.getPosition().x, object.getPosition().z, 41, 44, 0)
|
||||
object.setAttachment("terminalType", 1)
|
||||
object.setAttachment("terminalType", TerminalType.GENERIC)
|
||||
return
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import sys
|
||||
from resources.datatables import TerminalType
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment("terminalType", 4)
|
||||
object.setAttachment("terminalType", TerminalType.ARTISAN)
|
||||
core.mapService.addLocation(object.getPlanet(), '@map_loc_cat_n:terminal_mission_artisan', object.getPosition().x, object.getPosition().z, 41, 76, 0)
|
||||
return
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import sys
|
||||
from resources.datatables import TerminalType
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment("terminalType", 2)
|
||||
object.setAttachment("terminalType", TerminalType.BOUNTY)
|
||||
core.mapService.addLocation(object.getPlanet(), '@map_loc_cat_n:terminal_mission_bounty', object.getPosition().x, object.getPosition().z, 41, 78, 0)
|
||||
return
|
||||
@@ -1,6 +1,7 @@
|
||||
import sys
|
||||
from resources.datatables import TerminalType
|
||||
|
||||
def setup(core, object):
|
||||
object.setAttachment("terminalType", 3)
|
||||
object.setAttachment("terminalType", TerminalType.ENTERTAINER)
|
||||
core.mapService.addLocation(object.getPlanet(), '@map_loc_cat_n:terminal_mission_entertainer', object.getPosition().x, object.getPosition().z, 41, 75, 0)
|
||||
return
|
||||
Reference in New Issue
Block a user