I think that it plausible that if a ship could have a transporter device then there is no reason it can't have a mineral vacuum.
Code: Select all
$anull = null
if [THIS]
$ship = [THIS]
$ship-> set command: [COMMAND_COLLECT_DEBRIS]
else
$ship = [PLAYERSHIP]
$ship-> set command: [COMMAND_COLLECT_DEBRIS]
end
$sec = $ship-> get sector
$rock = find debris: sector=[Sector] resource=null min yield=0 flags=0 refobj=$Value num=5 maxdist=9999999 refpos=$Array
while $rock-> has collectible rocks
$rmc = $rock-> get resource waretype of asteroid
$count = $rock-> get asteroid yield
$free = $ship-> get free amount of ware $rmc in cargo bay
if $free < $count
$m = sprintf: pageid=8818 textid=1, null, null, null, null, null
play sample: incoming transmission 1, from object $anull
write to player logbook $m
return $anull
end
= $ship-> add $count units of $rmc
$rock-> destruct: show no explosion=[TRUE]
play sample 991
= wait randomly from 1300 to 1800 ms
$rock = find debris: sector=[Sector] resource=null min yield=0 flags=0 refobj=$Value num=5 maxdist=9999999 refpos=$Array
end
return null