74ce884b05
Heads had to roll
11 lines
283 B
Python
11 lines
283 B
Python
from nullptr.util import AppError
|
|
|
|
def assign_miner(c, s):
|
|
if s.crew is None:
|
|
raise AppError('ship has no crew')
|
|
w = s.crew.site
|
|
resources = s.crew.resources
|
|
c.captain.init_mission(s, 'mine')
|
|
c.captain.smipa(s, 'site', w)
|
|
c.captain.smipa(s, 'resources', resources)
|
|
|