Don't need those named like that now that they're out of .config. Also I got in the habit of using 'wire' instead of 'wiring'.
This commit is contained in:
parent
1cdf83968f
commit
f585c85a44
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: Zergling_man, from fedora.email
|
# Maintainer: Zergling_man, from fedora.email
|
||||||
|
|
||||||
pkgname=swat-codegen
|
pkgname=swat-codegen
|
||||||
pkgver=1.0.4
|
pkgver=1.0.5
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A simple CLI interface to RCPDv3, the rank code management service for the game SWAT: Aftermath"
|
pkgdesc="A simple CLI interface to RCPDv3, the rank code management service for the game SWAT: Aftermath"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
|
|
@ -44,15 +44,15 @@ function delete_code
|
||||||
function lookup
|
function lookup
|
||||||
{
|
{
|
||||||
w=
|
w=
|
||||||
matches=`grep -ic "${*:2}" $loc/swat_$1`
|
matches=`grep -ic "${*:2}" $loc/$1`
|
||||||
if [ "$matches" -ne 1 ]; then
|
if [ "$matches" -ne 1 ]; then
|
||||||
echo "$1 '${*:2}' is ambiguous (got $matches matches), trying whole-word match" >&2
|
echo "$1 '${*:2}' is ambiguous (got $matches matches), trying whole-word match" >&2
|
||||||
# Attempt whole-word match and see if we get exactly one result (and then remember it has happened!!!)
|
# Attempt whole-word match and see if we get exactly one result (and then remember it has happened!!!)
|
||||||
w=w
|
w=w
|
||||||
word_matches=`grep -ic$w "${*:2}" $loc/swat_$1`
|
word_matches=`grep -ic$w "${*:2}" $loc/$1`
|
||||||
if [ "$word_matches" -ne 1 ]; then echo "still ambiguous (got $word_matches matches)" >&2; return 1; fi
|
if [ "$word_matches" -ne 1 ]; then echo "still ambiguous (got $word_matches matches)" >&2; return 1; fi
|
||||||
fi
|
fi
|
||||||
read $1 garbage <<< "`grep -i$w "${*:2}" $loc/swat_$1`"
|
read $1 garbage <<< "`grep -i$w "${*:2}" $loc/$1`"
|
||||||
}
|
}
|
||||||
|
|
||||||
# USER-FACING COMMANDS
|
# USER-FACING COMMANDS
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
Light
|
|
||||||
Medium m
|
|
||||||
Heavy h
|
|
||||||
Advanced Cyborg Watchman
|
|
|
@ -1,12 +0,0 @@
|
||||||
Sniper gs ss
|
|
||||||
Medic
|
|
||||||
Tactician
|
|
||||||
Psychologist
|
|
||||||
Maverick
|
|
||||||
HeavyOrdnance ho
|
|
||||||
Demolitions
|
|
||||||
Cyborg
|
|
||||||
Pyrotechnician
|
|
||||||
Watchman wm
|
|
||||||
TechOps techies
|
|
||||||
UmbrellaClone gal alice
|
|
|
@ -1,8 +0,0 @@
|
||||||
AssaultRifle a ar Medic Tactician Psychologist
|
|
||||||
SniperRifle s sr TechOps
|
|
||||||
Chaingun c cg HeavyOrdnance Cyborg
|
|
||||||
RocketLauncher r rl Demolitions
|
|
||||||
Flamethrower f ft Pyrotechnician
|
|
||||||
LaserRifle lr
|
|
||||||
GatlingLaser gl
|
|
||||||
Pistols fists UmbrellaClone
|
|
|
@ -1,9 +0,0 @@
|
||||||
Weaponry
|
|
||||||
PowerArmor pa
|
|
||||||
EnergyCells
|
|
||||||
Cybernetics
|
|
||||||
Triage
|
|
||||||
Chemistry
|
|
||||||
Leadership
|
|
||||||
Robotics
|
|
||||||
Espionage
|
|
|
@ -1,7 +0,0 @@
|
||||||
Courage crg
|
|
||||||
Wiring
|
|
||||||
Running
|
|
||||||
Spotting
|
|
||||||
Toughness
|
|
||||||
Tinkering
|
|
||||||
Hacking
|
|
|
@ -1,16 +0,0 @@
|
||||||
Skilled
|
|
||||||
Gifted
|
|
||||||
Survivalist
|
|
||||||
Dragoon
|
|
||||||
Acrobat
|
|
||||||
SwiftLearner sl
|
|
||||||
Healer
|
|
||||||
FlowerChild fc
|
|
||||||
ChemReliant cr
|
|
||||||
RadResistant rr
|
|
||||||
Gadgeteer
|
|
||||||
Prowler
|
|
||||||
Energizer energiser
|
|
||||||
PackRat pr
|
|
||||||
Engineer
|
|
||||||
Reckless
|
|
Loading…
Reference in New Issue
Block a user