Skip to content

Commit

Permalink
Added support for more GS queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabacman committed Jan 12, 2024
1 parent 4ed4a91 commit 6f33f34
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/Buoy-GS64-Compatibility/GsQuery.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ GsQuery >> on: anUnorderedCollection [
each name = 'SDF-1' and: ( each fleet anySatisfy: [ :ship | ship name = 'VF-1D' ] ) ]
].

( queryString includesSubstring: 'firepower' ) ifTrue: [
^ results := anUnorderedCollection select: [ :each | each firepower between: 2117 + 1 and: 8000 ] ]
( queryString includesSubstring: '2117' ) ifTrue: [
^ results := anUnorderedCollection select: [ :each | each firepower between: 2117 + 1 and: 8000 ] ].

( queryString includesSubstring: '2001' ) ifTrue: [
^ results := anUnorderedCollection select: [ :each | each firepower between: 2001 and: 6000 - 1 ] ]
]

{ #category : 'accessing' }
Expand Down

0 comments on commit 6f33f34

Please sign in to comment.