0ptr/nullptr/roles/siphon.py

8 lines
207 B
Python
Raw Normal View History

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