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:
Zergling_man 2024-11-03 16:55:38 +11:00
parent 1cdf83968f
commit f585c85a44
8 changed files with 6 additions and 62 deletions

View File

@ -1,7 +1,7 @@
# Maintainer: Zergling_man, from fedora.email
pkgname=swat-codegen
pkgver=1.0.4
pkgver=1.0.5
pkgrel=1
pkgdesc="A simple CLI interface to RCPDv3, the rank code management service for the game SWAT: Aftermath"
arch=('any')
@ -18,4 +18,4 @@ package() {
chmod a+x codegen.sh
cp swat_* codegen.sh ${pkgdir}/opt/swat-codegen
ln -s /opt/swat-codegen/codegen.sh /${pkgdir}/usr/bin/rcpd
}
}

View File

@ -44,15 +44,15 @@ function delete_code
function lookup
{
w=
matches=`grep -ic "${*:2}" $loc/swat_$1`
matches=`grep -ic "${*:2}" $loc/$1`
if [ "$matches" -ne 1 ]; then
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!!!)
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
fi
read $1 garbage <<< "`grep -i$w "${*:2}" $loc/swat_$1`"
read $1 garbage <<< "`grep -i$w "${*:2}" $loc/$1`"
}
# USER-FACING COMMANDS
@ -102,4 +102,4 @@ function generate
}
# DO SHIT
"$@"
"$@"

View File

@ -1,4 +0,0 @@
Light
Medium m
Heavy h
Advanced Cyborg Watchman

View File

@ -1,12 +0,0 @@
Sniper gs ss
Medic
Tactician
Psychologist
Maverick
HeavyOrdnance ho
Demolitions
Cyborg
Pyrotechnician
Watchman wm
TechOps techies
UmbrellaClone gal alice

View File

@ -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

View File

@ -1,9 +0,0 @@
Weaponry
PowerArmor pa
EnergyCells
Cybernetics
Triage
Chemistry
Leadership
Robotics
Espionage

View File

@ -1,7 +0,0 @@
Courage crg
Wiring
Running
Spotting
Toughness
Tinkering
Hacking

View File

@ -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