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:
tacef
2014-08-11 21:58:01 +02:00
parent 98d16cfb3d
commit fc9fab4bcf
6 changed files with 48 additions and 8 deletions
@@ -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