0ptr/nullptr/roles/surveyor.py

10 lines
209 B
Python
Raw Normal View History

from nullptr.util import AppError
def assign_surveyor(c, s):
if s.crew is None:
raise AppError('ship has no crew')
w = s.crew.site
c.init_mission(s, 'survey')
c.smipa(s, 'site', w)