Modified safe also in sumo's spawn_npc

This commit is contained in:
Daniel Santos-Olivan 2021-08-02 13:43:45 +02:00 committed by bernat
parent 4d9af29506
commit 67bcdd4179
1 changed files with 7 additions and 4 deletions

View File

@ -143,10 +143,13 @@ def main(args):
blueprints = [ blueprints = [
x for x in blueprints if vtypes[x]['vClass'] not in ('motorcycle', 'bicycle') x for x in blueprints if vtypes[x]['vClass'] not in ('motorcycle', 'bicycle')
] ]
blueprints = [x for x in blueprints if not x.endswith('isetta')] blueprints = [x for x in blueprints if not x.id.endswith('microlino')]
blueprints = [x for x in blueprints if not x.endswith('carlacola')] blueprints = [x for x in blueprints if not x.id.endswith('carlacola')]
blueprints = [x for x in blueprints if not x.endswith('cybertruck')] blueprints = [x for x in blueprints if not x.id.endswith('cybertruck')]
blueprints = [x for x in blueprints if not x.endswith('t2')] blueprints = [x for x in blueprints if not x.id.endswith('t2')]
blueprints = [x for x in blueprints if not x.id.endswith('sprinter')]
blueprints = [x for x in blueprints if not x.id.endswith('firetruck')]
blueprints = [x for x in blueprints if not x.id.endswith('ambulance')]
if not blueprints: if not blueprints:
raise RuntimeError('No blueprints available due to user restrictions.') raise RuntimeError('No blueprints available due to user restrictions.')