!feat: removed scrimmaker temporarily

feat: added WeaponInfoCommand, added Weapons
This commit is contained in:
limited_dev 2022-11-02 23:09:21 +01:00
parent 2d0665d4d3
commit 1464f222d0
71 changed files with 973 additions and 65 deletions

10
Weapons/52_gal.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameDE=.52 Gallon
nameEN=.52 Gal
callout=52
requiredLvl=11
pointsForSpecial=200
mainType=shooter
subType=splash wall
specialType=killer wail 5.1
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/e/ed/S3_Weapon_Main_.52_Gal.png

10
Weapons/96_gal.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameDE=.96 Gallon
nameEN=.96 Gal
callout=96
requiredLvl=17
pointsForSpecial=200
mainType=shooter
subType=Sprinkler
specialType=ink vac
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/55/S3_Weapon_Main_.96_Gal.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Ballpoint Splatling
nameDE=Kuli-Splatling
callout=Ballpoint ?
requiredLvl=30
pointsForSpecial=200
mainType=splatling
subType=fizzy bomb
specialType=inkjet
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/f/f9/S3_Weapon_Main_Ballpoint_Splatling.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Bamboozler 14 Mk I
nameDE=Klotzer 14-A
callout=Bamboo
requiredLvl=23
pointsForSpecial=200
mainType=charger
subType=autobomb
specialType=killer wail 5.1
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/6/6d/S3_Weapon_Main_Bamboozler_14_Mk_I.png

10
Weapons/blaster.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Blaster
nameDE=Blaster
callout=Blaster
requiredLvl=3
pointsForSpecial=180
mainType=blaster
subType=autobomb
specialType=big bubbler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/a/a7/S3_Weapon_Main_Blaster.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Carbon Roller
nameDE=Karbonroller
callout=Carbon
requiredLvl=6
pointsForSpecial=180
mainType=roller
subType=autobomb
specialType=zipcaster
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/2/21/S3_Weapon_Main_Carbon_Roller.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Clash Blaster
nameDE=Kontra-Blaster
callout=Clash
requiredLvl=22
pointsForSpecial=180
mainType=blaster
subType=splat bomb
specialType=trizooka
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/2/2f/S3_Weapon_Main_Clash_Blaster.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Classic Squiffer
nameDE=Sepiator α
callout=Squiffer
requiredLvl=8
pointsForSpecial=190
mainType=Charger
subType=point sensor
specialType=big bubbler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/3/3c/S3_Weapon_Main_Classic_Squiffer.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Dapple Dualies
nameDE=Sprenkler
callout=Dapples
requiredLvl=14
pointsForSpecial=180
mainType=dualie
subType=squid beakon
specialType=Tacticooler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/54/S3_Weapon_Main_Dapple_Dualies.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Dark Tetra Dualies
nameDE=Quadhopper Noir
callout=Tetras
requiredLvl=17
pointsForSpecial=200
mainType=dualie
subType=autobomb
specialType=reefslider
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/c/c9/S3_Weapon_Main_Dark_Tetra_Dualies.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Dualie Squelchers
nameDE=Dual-Platscher
callout=DS
requiredLvl=8
pointsForSpecial=200
mainType=dualie
subType=splat bomb
specialType=wave breaker
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/5a/S3_Weapon_Main_Dualie_Squelchers.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Dynamo Roller
nameDE=Dynaroller
callout=Dynamo
requiredLvl=12
pointsForSpecial=190
mainType=roller
subType=sprinkler
specialType=tacticooler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/5e/S3_Weapon_Main_Dynamo_Roller.png

10
Weapons/e_liter_4k.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=E-liter 4K
nameDE=E-liter 4k
callout=E-Liter
requiredLvl=18
pointsForSpecial=200
mainType=charger
subType=ink mine
specialType=wave breaker
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/1/10/S3_Weapon_Main_E-liter_4K.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=E-liter 4K Scope
nameDE=Ziel-E-liter 4k
callout=E-Liter
requiredLvl=18
pointsForSpecial=200
mainType=charger
subType=ink mine
specialType=wave breaker
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/e/eb/S3_Weapon_Main_E-liter_4K_Scope.png

10
Weapons/explosher.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Explosher
nameDE=Knall-Schwapper
callout=Explo
requiredLvl=29
pointsForSpecial=200
mainType=slosher
subType=point sensor
specialType=ink storm
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/d/de/S3_Weapon_Main_Explosher.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Flingza Roller
nameDE=Flex-Roller
callout=Flingza
requiredLvl=20
pointsForSpecial=210
mainType=roller
subType=ink mine
specialType=tenta missiles
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/d/d2/S3_Weapon_Main_Flingza_Roller.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Glooga Dualies
nameDE=Kelvin 525
callout=Gloogas
requiredLvl=21
pointsForSpecial=180
mainType=dualie
subType=splash wall
specialType=booyah bomb
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/9/99/S3_Weapon_Main_Glooga_Dualies.png

10
Weapons/goo_tuber.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Goo Tuber
nameDE=T-Tuber
callout=Goo
requiredLvl=25
pointsForSpecial=210
mainType=charger
subType=torpedo
specialType=tenta missiles
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/8/8a/S3_Weapon_Main_Goo_Tuber.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=H-3 Nozzlenose
nameDE=S3 Tintenwerfer
callout=Nozzle
requiredLvl=24
pointsForSpecial=200
mainType=shooter
subType=point sensor
specialType=tacticooler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/5a/S3_Weapon_Main_H-3_Nozzlenose.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Heavy Splatling
nameDE=Splatling
callout=Heavy
requiredLvl=4
pointsForSpecial=200
mainType=splatling
subType=sprinkler
specialType=wave breaker
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/5e/S3_Weapon_Main_Heavy_Splatling.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Hero Shot Replica
nameDE=Heldenwaffe Replik
callout=Hero Shot
requiredLvl=1
pointsForSpecial=200
mainType=shooter
subType=suction bomb
specialType=trizooka
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/2/24/S3_Weapon_Main_Hero_Shot_Replica.png

10
Weapons/hurensohn.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=REEF-LUX 450
nameDE=LACT-450
callout=REEF LUX
requiredLvl=10
pointsForSpecial=210
mainType=stringer
subType=curling bomb
specialType=tenta missiles
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/6/66/S3_Weapon_Main_REEF-LUX_450.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Hydra Splatling
nameDE=Hydrant
callout=Hydra
requiredLvl=20
pointsForSpecial=190
mainType=splatling
subType=autobomb
specialType=booyah bomb
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/d/d1/S3_Weapon_Main_Hydra_Splatling.png

10
Weapons/inkbrush.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Inkbrush
nameDE=Quasto
callout=Brush
requiredLvl=7
pointsForSpecial=180
mainType=brush
subType=splat bomb
specialType=killer wail 5.1
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/4/4a/S3_Weapon_Main_Inkbrush.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Jet Squelcher
nameDE=Platcher
callout=Squelcher
requiredLvl=15
pointsForSpecial=200
mainType=shooter
subType=angle shooter
specialType=ink vac
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/6/69/S3_Weapon_Main_Jet_Squelcher.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=L-3 Nozzlenose
nameDE=L3 Tintenwerfer
callout=Nozzle
requiredLvl=13
pointsForSpecial=200
mainType=shooter
subType=curling bomb
specialType=crab tank
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/2/2c/S3_Weapon_Main_L-3_Nozzlenose.png

10
Weapons/luna_blaster.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Luna Blaster
nameDE=Luna-Blaster
callout=Luna
requiredLvl=13
pointsForSpecial=180
mainType=blaster
subType=splat bomb
specialType=zipcaster
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/59/S3_Weapon_Main_Luna_Blaster.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Aerospray MG
nameDE=Airbrush MG
callout=Trashcan
requiredLvl=5
pointsForSpecial=200
mainType=shooter
subType=curling bomb
specialType=crab tank
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/8/86/S3_Weapon_Main_Mini_Splatling.png

10
Weapons/n_zap_85.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=N-ZAP '85
nameDE=N-ZAP85
callout=ZAP
requiredLvl=6
pointsForSpecial=200
mainType=shooter
subType=suction bomb
specialType=tacticooler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/f/f6/S3_Weapon_Main_N-ZAP_%2785.png

10
Weapons/nautilus_47.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Nautilus 47
nameDE=Nautilus 47
callout=Naut
requiredLvl=28
pointsForSpecial=190
mainType=splatling
subType=point sensor
specialType=ink storm
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/8/81/S3_Weapon_Main_Nautilus_47.png

10
Weapons/octobrush.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Octobrush
nameDE=Kaligraf
callout=Brush
requiredLvl=4
pointsForSpecial=200
mainType=brush
subType=suction bomb
specialType=zipcaster
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/3/3d/S3_Weapon_Main_Octobrush.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Boblobber
nameDE=Wannen-Schwapper
callout=Piss Schwapper
requiredLvl=19
pointsForSpecial=190
mainType=slosher
subType=sprinkler
specialType=ink storm
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/4/41/S3_Weapon_Main_Bloblobber.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Range Blaster
nameDE=Fern-Blaster
callout=Range
requiredLvl=11
pointsForSpecial=200
mainType=blaster
subType=suction bomb
specialType=wave breaker
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/1/1d/S3_Weapon_Main_Range_Blaster.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Rapid Blaster
nameDE=Turbo-Blaster
callout=Rapid
requiredLvl=7
pointsForSpecial=200
mainType=blaster
subType=ink mine
specialType=triple inkstrike
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/6/6a/S3_Weapon_Main_Rapid_Blaster.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Rapid Blaster Pro
nameDE=Turbo-Blaster Plus
callout=Rapid Pro
requiredLvl=26
pointsForSpecial=180
mainType=blaster
subType=toxic mist
specialType=ink vac
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/c/c6/S3_Weapon_Main_Rapid_Blaster_Pro.png

10
Weapons/slosher.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Slosher
nameDE=Schwapper
callout=Slosh
requiredLvl=3
pointsForSpecial=200
mainType=slosher
subType=splat bomb
specialType=triple inkstrike
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/4/42/S3_Weapon_Main_Slosher.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splash-o-matic
nameDE=Fein-Disperser
callout=Splash
requiredLvl=16
pointsForSpecial=200
mainType=shooter
subType=burst bomb
specialType=crab tank
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/7/7b/S3_Weapon_Main_Splash-o-matic.png

10
Weapons/splat_brella.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splat Brella
nameDE=Parapulvisator
callout=Brella
requiredLvl=5
pointsForSpecial=200
mainType=brella
subType=sprinkler
specialType=triple inkstrike
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/2/27/S3_Weapon_Main_Splat_Brella.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splat Charger
nameDE=Klecks-Konzentrator
callout=Charger
requiredLvl=2
pointsForSpecial=200
mainType=charger
subType=splat bomb
specialType=ink vac
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/4/41/S3_Weapon_Main_Splat_Charger.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splat Dualies
nameDE=Klecks-Doppler
callout=Dualies
requiredLvl=3
pointsForSpecial=200
mainType=dualie
subType=suction bomb
specialType=crab tank
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/e/e8/S3_Weapon_Main_Splat_Dualies.png

10
Weapons/splat_roller.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splat Roller
nameDE=Klecksroller
callout=Roller
requiredLvl=2
pointsForSpecial=180
mainType=roller
subType=curling bomb
specialType=big bubbler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/c/c7/S3_Weapon_Main_Splat_Roller.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splatana Stamper
nameDE=Stempel-Splatana
callout=Stamper
requiredLvl=15
pointsForSpecial=200
mainType=splatana
subType=burst bomb
specialType=zipcaster
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/4/4d/S3_Weapon_Main_Splatana_Stamper.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splatana Wiper
nameDE=Wischer-Splatana
callout=Splatana
requiredLvl=5
pointsForSpecial=180
mainType=splatana
subType=torpedo
specialType=ultra stamp
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/e/e5/S3_Weapon_Main_Splatana_Wiper.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splatterscope
nameDE=Kiel-Konzentrator
callout=scope
requiredLvl=10
pointsForSpecial=200
mainType=charger
subType=splat bomb
specialType=ink vac
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/b/b2/S3_Weapon_Main_Splatterscope.png

10
Weapons/splattershot.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splattershot
nameDE=Klekser
callout=shot
requiredLvl=2
pointsForSpecial=200
mainType=shooter
subType=suction bomb
specialType=trizooka
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/b/bf/S3_Weapon_Main_Splattershot.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splattershot Jr.
nameDE=Klekser Jr.
callout=Jr.
requiredLvl=1
pointsForSpecial=180
mainType=shooter
subType=splat bomb
specialType=big bubbler
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/1/1e/S3_Weapon_Main_Splattershot_Jr..png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Splattershot Pro
nameDE=Profi-Klekser
callout=Pro
requiredLvl=9
pointsForSpecial=200
mainType=shooter
subType=angle shooter
specialType=crab tank
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/7/77/S3_Weapon_Main_Splattershot_Pro.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Sploosh-o-matic
nameDE=Disperser
callout=Sploosh
requiredLvl=9
pointsForSpecial=200
mainType=shooter
subType=curling bomb
specialType=ultra stamp
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/59/S3_Weapon_Main_Sploosh-o-matic.png

10
Weapons/squeezer.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Squeezer
nameDE=Quetscher
callout=Squeezer
requiredLvl=19
pointsForSpecial=200
mainType=shooter
subType=splash wall
specialType=trizooka
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/c/cb/S3_Weapon_Main_Squeezer.png

10
Weapons/tenta_brella.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Tenta Brella
nameDE=Camp-Pluviator
callout=Tent
requiredLvl=16
pointsForSpecial=190
mainType=brella
subType=squid beakon
specialType=ink vac
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/1/1e/S3_Weapon_Main_Tenta_Brella.png

10
Weapons/trashcan.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Aerospray MG
nameDE=Airbrush MG
callout=Trashcan
requiredLvl=5
pointsForSpecial=200
mainType=shooter
subType=fizzy bomb
specialType=reefslider
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/c/c5/S3_Weapon_Main_Aerospray_MG.png

10
Weapons/tri_slosher.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Tri-Slosher
nameDE=3R-Schwapper
callout=IKEA
requiredLvl=10
pointsForSpecial=190
mainType=slosher
subType=toxic mist
specialType=inkjet
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/d/dc/S3_Weapon_Main_Tri-Slosher.png

10
Weapons/tri_stringer.judd Normal file
View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Tri-Stringer
nameDE=Tri-Stringer
callout=Stringer
requiredLvl=4
pointsForSpecial=200
mainType=stringer
subType=toxic mist
specialType=killer wail 5.1
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/4/49/S3_Weapon_Main_Tri-Stringer.png

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Undercover Brella
nameDE=UnderCover
callout=Undercover
requiredLvl=18
pointsForSpecial=180
mainType=brella
subType=ink mine
specialType=reefslider
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/5/5d/S3_Weapon_Main_Undercover_Brella.png

2
Weapons/version.info Normal file
View file

@ -0,0 +1,2 @@
#Wed Nov 02 20:22:53 CET 2022
basedOnSplatoonVersion=1.2.1

View file

@ -0,0 +1,10 @@
#Tue Sep 27 23:22:46 CEST 2022
nameEN=Sloshing Machine
nameDE=Trommel-Schwapper
callout=Machine
requiredLvl=14
pointsForSpecial=210
mainType=slosher
subType=fizzy bomb
specialType=booyah bomb
imgLink=https://cdn.wikimg.net/en/splatoonwiki/images/3/38/S3_Weapon_Main_Sloshing_Machine.png

View file

@ -5,7 +5,8 @@ plugins {
} }
group = "de.limited_dev" group = "de.limited_dev"
version = "v1.2.1" version = "v1.3.0"
var splatoonPatchBased = "1.3.0"
repositories { repositories {
mavenCentral() mavenCentral()
@ -57,7 +58,8 @@ tasks {
create<Copy>("generateTemplates") { create<Copy>("generateTemplates") {
filteringCharset = "UTF-8" filteringCharset = "UTF-8"
val props = mapOf( val props = mapOf(
"version" to version "version" to version,
"splatoonPatchBased" to splatoonPatchBased
) )
inputs.properties(props) inputs.properties(props)
from(templateSource) from(templateSource)

View file

@ -2,6 +2,7 @@ package de.limited_dev.lil_judd;
import de.limited_dev.lil_judd.build.BuildConstants; import de.limited_dev.lil_judd.build.BuildConstants;
import de.limited_dev.lil_judd.consolecommand.component.ConsoleCommandManager; import de.limited_dev.lil_judd.consolecommand.component.ConsoleCommandManager;
import de.limited_dev.lil_judd.features.weapons.WeaponManager;
import de.limited_dev.lil_judd.jdacommands.components.JDACommandManager; import de.limited_dev.lil_judd.jdacommands.components.JDACommandManager;
import de.limited_dev.lil_judd.features.maps.MapManager; import de.limited_dev.lil_judd.features.maps.MapManager;
import de.limited_dev.lil_judd.features.planner.TimePlanner; import de.limited_dev.lil_judd.features.planner.TimePlanner;
@ -11,6 +12,7 @@ import de.limited_dev.lil_judd.listeners.ReadyListener;
import de.limited_dev.lil_judd.listeners.SlashCommandInteractionListener; import de.limited_dev.lil_judd.listeners.SlashCommandInteractionListener;
import de.limited_dev.lil_judd.util.Logger; import de.limited_dev.lil_judd.util.Logger;
import de.limited_dev.lil_judd.util.managers.TokenManager; import de.limited_dev.lil_judd.util.managers.TokenManager;
import de.limited_dev.lil_judd.util.managers.WeaponDataManager;
import net.dv8tion.jda.api.JDA; import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder; import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.OnlineStatus; import net.dv8tion.jda.api.OnlineStatus;
@ -21,6 +23,7 @@ public class Main {
private static JDA jda; private static JDA jda;
private static Logger lgr = new Logger(); private static Logger lgr = new Logger();
private static final TokenManager tokenManager = TokenManager.getInstance(); private static final TokenManager tokenManager = TokenManager.getInstance();
private static final WeaponDataManager weaponDataManager = WeaponDataManager.getInstance();
private static long launchTime; private static long launchTime;
public static void main(String[] args){ public static void main(String[] args){
@ -28,6 +31,7 @@ public class Main {
lgr.info(BuildConstants.botVersion); lgr.info(BuildConstants.botVersion);
launchTime = System.currentTimeMillis(); launchTime = System.currentTimeMillis();
tokenManager.load(); tokenManager.load();
weaponDataManager.loadPatchInfo();
jda = JDABuilder.createDefault(tokenManager.getToken()) jda = JDABuilder.createDefault(tokenManager.getToken())
.setActivity(Activity.watching("You")) .setActivity(Activity.watching("You"))
@ -46,7 +50,7 @@ public class Main {
} }
MapManager.registerMaps(); MapManager.registerMaps();
GuildTimePlannerStorage.getInstance().load(); WeaponManager.registerWeapons();
TimePlanner.registerMessageThread(); TimePlanner.registerMessageThread();
JDACommandManager.registerCommands(); JDACommandManager.registerCommands();
ConsoleCommandManager.registerCommands(); ConsoleCommandManager.registerCommands();
@ -68,4 +72,8 @@ public class Main {
public static long getLaunchTime() { public static long getLaunchTime() {
return launchTime; return launchTime;
} }
public static WeaponDataManager getWeaponDataManager(){
return weaponDataManager;
}
} }

View file

@ -6,6 +6,7 @@ import de.limited_dev.lil_judd.consolecommand.system.ShutdownCommand;
import de.limited_dev.lil_judd.consolecommand.util.AnnounceCommand; import de.limited_dev.lil_judd.consolecommand.util.AnnounceCommand;
import de.limited_dev.lil_judd.consolecommand.util.HelpConsoleCommand; import de.limited_dev.lil_judd.consolecommand.util.HelpConsoleCommand;
import de.limited_dev.lil_judd.consolecommand.util.ManualCommand; import de.limited_dev.lil_judd.consolecommand.util.ManualCommand;
import de.limited_dev.lil_judd.consolecommand.weapons.ReloadWeaponsCommand;
import de.limited_dev.lil_judd.util.Logger; import de.limited_dev.lil_judd.util.Logger;
import java.util.ArrayList; import java.util.ArrayList;
@ -23,6 +24,7 @@ public class ConsoleCommandManager {
commands.add(new ManualCommand()); commands.add(new ManualCommand());
commands.add(new BotVersionCommand()); commands.add(new BotVersionCommand());
commands.add(new AnnounceCommand()); commands.add(new AnnounceCommand());
commands.add(new ReloadWeaponsCommand());
} }
public static void registerListener(){ public static void registerListener(){

View file

@ -0,0 +1,15 @@
package de.limited_dev.lil_judd.consolecommand.weapons;
import de.limited_dev.lil_judd.consolecommand.component.ConsoleCommand;
import de.limited_dev.lil_judd.features.weapons.WeaponManager;
public class ReloadWeaponsCommand extends ConsoleCommand {
public ReloadWeaponsCommand() {
super("reloadweapons", "Reload Weapons found in files", null);
}
@Override
public void onCommand(String[] args) {
WeaponManager.reloadWeapons();
}
}

View file

@ -1,14 +1,63 @@
package de.limited_dev.lil_judd.features.weapons; package de.limited_dev.lil_judd.features.weapons;
import de.limited_dev.lil_judd.Main; import de.limited_dev.lil_judd.Main;
import de.limited_dev.lil_judd.features.weapons.components.WeaponKit;
import de.limited_dev.lil_judd.features.weapons.components.enums.MainType;
import de.limited_dev.lil_judd.features.weapons.components.enums.SpecialType;
import de.limited_dev.lil_judd.features.weapons.components.enums.SubType;
import de.limited_dev.lil_judd.util.Logger;
import de.limited_dev.lil_judd.util.managers.WeaponDataManager;
import java.io.IOException; import java.util.ArrayList;
import java.net.URI; import java.util.List;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class WeaponManager { public class WeaponManager {
private static List<WeaponKit> weaponKitList = new ArrayList<>();
private static Logger lgr = Main.getLgr();
public static void registerWeapons(){
//weaponKitList.add(new WeaponKit(".52 Gallon", ".52 Gal", 11, 200, MainType.SHOOTER, SubType.SPLASH_WALL, SpecialType.KILLER_WAIL_5_1, "https://cdn.wikimg.net/en/splatoonwiki/images/e/ed/S3_Weapon_Main_.52_Gal.png"));
weaponKitList = Main.getWeaponDataManager().load();
}
public static void reloadWeapons(){
weaponKitList = Main.getWeaponDataManager().load();
lgr.info("Reloaded all Weapons.");
}
public static WeaponKit getExactWeaponKit(String name){
for(WeaponKit wk : weaponKitList){
if(wk.getCallout().toLowerCase().equals(name.toLowerCase())){
return wk;
}
if(wk.getNameDE().toLowerCase().equals(name.toLowerCase())){
return wk;
}
if(wk.getNameEN().toLowerCase().equals(name.toLowerCase())){
return wk;
}
}
return null;
}
public static WeaponKit getWeaponKitFromSearch(String name){
for(WeaponKit wk : weaponKitList){
if(wk.getCallout().toLowerCase().startsWith(name.toLowerCase())){
return wk;
}
if(wk.getNameDE().toLowerCase().contains(name.toLowerCase())){
return wk;
}
if(wk.getNameEN().toLowerCase().contains(name.toLowerCase())){
return wk;
}
if(wk.getCallout().toLowerCase().contains(name.toLowerCase())){
return wk;
}
}
return null;
}
public static WeaponKit getIndex(int index){
return weaponKitList.get(index);
}
} }

View file

@ -5,19 +5,61 @@ import de.limited_dev.lil_judd.features.weapons.components.enums.SubType;
import de.limited_dev.lil_judd.features.weapons.components.enums.SpecialType; import de.limited_dev.lil_judd.features.weapons.components.enums.SpecialType;
public class WeaponKit { public class WeaponKit {
private final String weaponName; private final String nameDE;
private final String nameEN;
private final String callout;
private final int reqiredLevel; private final int reqiredLevel;
private final int pointsForSpecial; private final int pointsForSpecial;
private final MainType mainType; private final MainType mainType;
private final SubType subType; private final SubType subType;
private final SpecialType specialType; private final SpecialType specialType;
private final String imageLink;
public WeaponKit(String name,int requiredLvl, int pointsForSpecial, MainType mainType, SubType subType, SpecialType specialType){ public WeaponKit(String nameDE, String nameEN, String callout, int requiredLvl, int pointsForSpecial, MainType mainType, SubType subType, SpecialType specialType, String imageLink){
this.nameDE = nameDE;
this.nameEN = nameEN;
this.callout = callout;
this.reqiredLevel = requiredLvl; this.reqiredLevel = requiredLvl;
this.weaponName = name;
this.pointsForSpecial = pointsForSpecial; this.pointsForSpecial = pointsForSpecial;
this.mainType = mainType; this.mainType = mainType;
this.subType = subType; this.subType = subType;
this.specialType = specialType; this.specialType = specialType;
this.imageLink = imageLink;
}
public String getNameDE() {
return nameDE;
}
public String getCallout() {
return callout;
}
public int getReqiredLevel() {
return reqiredLevel;
}
public int getPointsForSpecial() {
return pointsForSpecial;
}
public MainType getMainType() {
return mainType;
}
public SubType getSubType() {
return subType;
}
public SpecialType getSpecialType() {
return specialType;
}
public String getImageLink() {
return imageLink;
}
public String getNameEN() {
return nameEN;
} }
} }

View file

@ -1,15 +1,38 @@
package de.limited_dev.lil_judd.features.weapons.components.enums; package de.limited_dev.lil_judd.features.weapons.components.enums;
import de.limited_dev.lil_judd.Main;
import java.util.Objects;
public enum MainType { public enum MainType {
SHOOTER, SHOOTER("Shooter"),
CHARGER, CHARGER("Charger"),
ROLLER, ROLLER("Roller"),
BLASTER, BLASTER("Blaster"),
SLOSHER, SLOSHER("Slosher"),
DUALIE, DUALIE("Dualie"),
SPLATLING, SPLATLING("Splatling"),
BRUSH, BRUSH("Brush"),
STRINGER, STRINGER("Stringer"),
BRELLA, BRELLA("Brella"),
SPLATANA SPLATANA("Splatana");
private String type;
MainType(String type){
this.type = type;
}
public static MainType getFromString(String str){
for(MainType m : MainType.values()){
if(Objects.equals(m.getType().toLowerCase(), str.toLowerCase()))
return m;
}
Main.getLgr().info("Could not find maintype");
return null;
}
public String getType() {
return type;
}
} }

View file

@ -1,19 +1,42 @@
package de.limited_dev.lil_judd.features.weapons.components.enums; package de.limited_dev.lil_judd.features.weapons.components.enums;
import de.limited_dev.lil_judd.Main;
import java.util.Objects;
public enum SpecialType { public enum SpecialType {
TRIZOOKA, TRIZOOKA("Trizooka"),
BIG_BUBBLER, BIG_BUBBLER("Big Bubbler"),
INK_VAC, INK_VAC("Ink Vac"),
TRIPLE_INKSTRIKE, TRIPLE_INKSTRIKE("Triple Inkstrike"),
CRAB_TANK, CRAB_TANK("Crab Tank"),
WAVE_BREAKER, WAVE_BREAKER("Wave Breaker"),
ZIPCASTER, ZIPCASTER("Zipcaster"),
KILLER_WAIL_5_1, KILLER_WAIL_5_1("Killer Wail 5.1"),
REEFSLIDER, REEFSLIDER("Reefslider"),
ULTRA_STAMP, ULTRA_STAMP("Ultra Stamp"),
TACTICOOLER, TACTICOOLER("Tacticooler"),
INKJET, INKJET("Inkjet"),
BOOYAH_BOMB, BOOYAH_BOMB("Booyah Bomb"),
INK_STORM, INK_STORM("Ink Storm"),
TENTA_MISSILS TENTA_MISSILS("Tenta Missiles");
private final String nameEN;
SpecialType(String nameEN){
this.nameEN = nameEN;
}
public static SpecialType getFromString(String str){
for(SpecialType s : SpecialType.values()){
if(Objects.equals(s.getNameEN().toLowerCase(), str.toLowerCase()))
return s;
}
Main.getLgr().info("Could not find specialtype");
return null;
}
public String getNameEN() {
return nameEN;
}
} }

View file

@ -1,18 +1,41 @@
package de.limited_dev.lil_judd.features.weapons.components.enums; package de.limited_dev.lil_judd.features.weapons.components.enums;
import de.limited_dev.lil_judd.Main;
import java.util.Objects;
public enum SubType { public enum SubType {
SUCTION_BOMB, SUCTION_BOMB("Suction Bomb"),
SPLAT_BOMB, SPLAT_BOMB("Splat Bomb"),
CURLING_BOMB, CURLING_BOMB("Curling Bomb"),
AUTO_BOMB, AUTO_BOMB("Autobomb"),
SPRINKLER, SPRINKLER("Sprinkler"),
TOXIC_MIST, TOXIC_MIST("Toxic Mist"),
FIZZY_BOMB, FIZZY_BOMB("Fizzy Bomb"),
TORPEDO, TORPEDO("Torpedo"),
INK_MINE, INK_MINE("Ink Mine"),
POINT_SENSOR, POINT_SENSOR("Point Sensor"),
ANGLE_SHOOTER, ANGLE_SHOOTER("Angle Shooter"),
SPLASH_WALL, SPLASH_WALL("Splash Wall"),
BURST_BOMB, BURST_BOMB("Burst Bomb"),
SQUID_BEAKON SQUID_BEAKON("Squid Beakon");
private final String nameEN;
SubType(String nameEN){
this.nameEN = nameEN;
}
public static SubType getFromString(String str){
for(SubType s : SubType.values()){
if(Objects.equals(s.nameEN.toLowerCase(), str.toLowerCase()))
return s;
}
Main.getLgr().info("Could not find subtype");
return null;
}
public String getNameEN() {
return nameEN;
}
} }

View file

@ -2,11 +2,8 @@ package de.limited_dev.lil_judd.jdacommands.components;
import de.limited_dev.lil_judd.jdacommands.management.RemoveFeatureCommand; import de.limited_dev.lil_judd.jdacommands.management.RemoveFeatureCommand;
import de.limited_dev.lil_judd.jdacommands.management.SetupFeatureCommand; import de.limited_dev.lil_judd.jdacommands.management.SetupFeatureCommand;
import de.limited_dev.lil_judd.jdacommands.scrim.EndScrimCommand;
import de.limited_dev.lil_judd.jdacommands.scrim.MessageScrimCommand;
import de.limited_dev.lil_judd.jdacommands.scrim.ScrimInfoCommand;
import de.limited_dev.lil_judd.jdacommands.scrim.SearchScrimCommand;
import de.limited_dev.lil_judd.jdacommands.util.*; import de.limited_dev.lil_judd.jdacommands.util.*;
import de.limited_dev.lil_judd.jdacommands.weapons.WeaponInfoCommand;
import java.util.List; import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.CopyOnWriteArrayList;
@ -16,15 +13,16 @@ public class JDACommandManager {
private static List<JDACommand> commands = new CopyOnWriteArrayList<>(); private static List<JDACommand> commands = new CopyOnWriteArrayList<>();
public static void registerCommands(){ public static void registerCommands(){
//commands.add(new SearchScrimCommand());
//commands.add(new EndScrimCommand());
//commands.add(new MessageScrimCommand());
//commands.add(new ScrimInfoCommand());
commands.add(new PingCommand()); commands.add(new PingCommand());
commands.add(new InfoCommand()); commands.add(new InfoCommand());
commands.add(new SetupFeatureCommand()); commands.add(new SetupFeatureCommand());
commands.add(new RemoveFeatureCommand()); commands.add(new RemoveFeatureCommand());
commands.add(new SearchScrimCommand()); commands.add(new TranslateMapCommand());
commands.add(new EndScrimCommand()); commands.add(new WeaponInfoCommand());
commands.add(new MessageScrimCommand());
commands.add(new ScrimInfoCommand());
commands.add(new TranslateCommand());
} }
public static List<JDACommand> getCommands() { public static List<JDACommand> getCommands() {

View file

@ -6,8 +6,8 @@ import de.limited_dev.lil_judd.features.maps.components.MapData;
import de.limited_dev.lil_judd.util.EmbeddedMessageHelper; import de.limited_dev.lil_judd.util.EmbeddedMessageHelper;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
public class TranslateCommand extends JDACommand { public class TranslateMapCommand extends JDACommand {
public TranslateCommand() { public TranslateMapCommand() {
super("translatemap"); super("translatemap");
} }

View file

@ -0,0 +1,35 @@
package de.limited_dev.lil_judd.jdacommands.weapons;
import de.limited_dev.lil_judd.Main;
import de.limited_dev.lil_judd.build.BuildConstants;
import de.limited_dev.lil_judd.features.weapons.WeaponManager;
import de.limited_dev.lil_judd.features.weapons.components.WeaponKit;
import de.limited_dev.lil_judd.jdacommands.components.JDACommand;
import de.limited_dev.lil_judd.jdacommands.components.JDACommandManager;
import de.limited_dev.lil_judd.util.EmbeddedMessageHelper;
import de.limited_dev.lil_judd.util.TimeUtil;
import de.limited_dev.lil_judd.util.managers.WeaponDataManager;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
import java.awt.*;
import java.util.HashMap;
public class WeaponInfoCommand extends JDACommand {
public WeaponInfoCommand() {
super("weaponinfo");
}
@Override
public void onSlashCommand(SlashCommandInteractionEvent event) {
WeaponKit wk = WeaponManager.getWeaponKitFromSearch(event.getOption("name").getAsString());
if(wk == null){
EmbeddedMessageHelper.sendSimpleOneLiner(event, "404: Not found", "This weapon does not exist.", null);
return;
}
HashMap<String, String[]> hm = new HashMap<>();
hm.put("Information", new String[]{"Callout", "Required Level", "Points for special", "Main Type", "Sub Type", "Special Type"});
hm.put("Value", new String[]{wk.getCallout(), wk.getReqiredLevel() + "", wk.getPointsForSpecial() + "p", wk.getMainType().getType(), wk.getSubType().getNameEN(), wk.getSpecialType().getNameEN()});
EmbeddedMessageHelper.sendWithTable(event, Main.getJda().getSelfUser().getName(),wk.getNameEN(), Color.GREEN, wk.getImageLink(),"Based on Splatoon patch ver." + Main.getWeaponDataManager().getBasedOnSplatoonVersion(),new String[]{"Information", "Value"}, hm,true);
}
}

View file

@ -21,6 +21,7 @@ public class SlashCommandRegister {
.addOptions(new OptionData(OptionType.STRING, "feature", "The Feature you want to remove", true) .addOptions(new OptionData(OptionType.STRING, "feature", "The Feature you want to remove", true)
.addChoice("Send Time finder", "timefinder"), .addChoice("Send Time finder", "timefinder"),
new OptionData(OptionType.CHANNEL, "channel", "The Channel with the feature", true)), new OptionData(OptionType.CHANNEL, "channel", "The Channel with the feature", true)),
/*
Commands.slash("searchscrim", "Search for a scrim") Commands.slash("searchscrim", "Search for a scrim")
.addOptions(new OptionData(OptionType.INTEGER, "div", "The Division you want to search in", true), .addOptions(new OptionData(OptionType.INTEGER, "div", "The Division you want to search in", true),
new OptionData(OptionType.USER, "player1", "The first Player of the team", true), new OptionData(OptionType.USER, "player1", "The first Player of the team", true),
@ -31,8 +32,12 @@ public class SlashCommandRegister {
Commands.slash("msgscrim", "Msg the enemy team") Commands.slash("msgscrim", "Msg the enemy team")
.addOptions(new OptionData(OptionType.STRING, "message", "Message content", true)), .addOptions(new OptionData(OptionType.STRING, "message", "Message content", true)),
Commands.slash("scriminfo", "Show info about the scrim system."), Commands.slash("scriminfo", "Show info about the scrim system."),
Commands.slash("translatemap", "Translate a Map") */
.addOptions(new OptionData(OptionType.STRING, "map", "Map Name", true)) Commands.slash("translatemap", "Translate a Map from English to German or vice versa")
.addOptions(new OptionData(OptionType.STRING, "map", "Map Name", true)),
Commands.slash("weaponinfo", "Get infos about a weapon")
.addOptions(new OptionData(OptionType.STRING, "name", "Weapon name in English or German", true))
.addOptions(new OptionData(OptionType.BOOLEAN, "mobileformatting", "Format the reply for mobile devices"))
).queue(); ).queue();
} }
} }

View file

@ -0,0 +1,130 @@
package de.limited_dev.lil_judd.util.managers;
import de.limited_dev.lil_judd.Main;
import de.limited_dev.lil_judd.build.BuildConstants;
import de.limited_dev.lil_judd.features.weapons.components.WeaponKit;
import de.limited_dev.lil_judd.features.weapons.components.enums.MainType;
import de.limited_dev.lil_judd.features.weapons.components.enums.SpecialType;
import de.limited_dev.lil_judd.features.weapons.components.enums.SubType;
import de.limited_dev.lil_judd.util.Logger;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
public class WeaponDataManager {
private static final Logger lgr = Main.getLgr();
private static WeaponDataManager weaponDataManager;
private final String basePath = "." + File.separator + "data" + File.separator + "Weapons" + File.separator;
private String basedOnSplatoonVersion;
public static WeaponDataManager getInstance(){
if(weaponDataManager == null){
weaponDataManager = new WeaponDataManager();
}
return weaponDataManager;
}
public List<WeaponKit> load(){
final String filename = "";
final String filePath = basePath + filename;
File dir = new File(basePath);
if(!dir.exists()){
return null;
}
List<WeaponKit> kits = new ArrayList<>();
for(File f : dir.listFiles()){
if(f.getName().contains(".info"))
continue;
if(!f.exists()){
lgr.info("This file does not exists. This should not happen!");
continue;
}
try{
InputStream input = new FileInputStream(f.getAbsolutePath());
Properties prop = new Properties();
prop.load(input);
kits.add(new WeaponKit(prop.getProperty("nameDE"),
prop.getProperty("nameEN"),
prop.getProperty("callout"),
Integer.parseInt(prop.getProperty("requiredLvl")),
Integer.parseInt(prop.getProperty("pointsForSpecial")),
MainType.getFromString(prop.getProperty("mainType")),
SubType.getFromString(prop.getProperty("subType")),
SpecialType.getFromString(prop.getProperty("specialType")),
prop.getProperty("imgLink")));
lgr.info("Found: " + prop.getProperty("nameEN") + " in " + f.getName());
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
if(kits.size() == 0){
lgr.info("No Weapons found!; Loading Null");
return null;
}
lgr.info("Loaded " + kits.size() + " Weapons!");
return kits;
}
public void loadPatchInfo(){
final String filename = "version.info";
final String filePath = basePath + filename;
File dir = new File(basePath);
if(!dir.exists()){
savePatchInfo();
return;
}
File configFile = new File(dir, filename);
if(!configFile.exists()){
savePatchInfo();
return;
}
try{
InputStream input = new FileInputStream(filePath);
Properties prop = new Properties();
prop.load(input);
basedOnSplatoonVersion = prop.getProperty("basedOnSplatoonVersion");
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public void savePatchInfo(){
File dir = new File(basePath);
if(!dir.exists()){
dir.mkdirs();
}
final String filename = "version.info";
final String filePath = basePath + filename;
File configFile = new File(dir, filename);
if(!configFile.exists()){
try{
configFile.createNewFile();
} catch(IOException e){
e.printStackTrace();
}
}
try{
OutputStream output = new FileOutputStream(filePath);
Properties prop = new Properties();
prop.setProperty("basedOnSplatoonVersion", BuildConstants.splatoonPatchVersion);
prop.store(output, null);
output.close();
} catch (IOException e) {
e.printStackTrace();
}
}
public String getBasedOnSplatoonVersion() {
return basedOnSplatoonVersion;
}
}

View file

@ -2,4 +2,5 @@ package de.limited_dev.lil_judd.build;
public class BuildConstants{ public class BuildConstants{
public static String botVersion = "${version}"; public static String botVersion = "${version}";
public static String splatoonPatchVersion = "${splatoonPatchBased}";
} }