From c79b3df1a2bf27a715b2682398307792de48c159 Mon Sep 17 00:00:00 2001 From: 0ceanSlim <89587889+0ceanSlim@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:33:18 -0400 Subject: [PATCH] update.py working but doesn't rewrite lines instead adds more, need to fix --- Database/createtables.py | 0 Database/data/ammo.csv | 14 +++++++ Database/data/reloading.csv | 15 +++++++ Database/items.db | Bin 77824 -> 77824 bytes Database/reloading.py | 42 +++++++++----------- Database/update.py | 77 ++++++++++++++++++++++++++++++++++++ 6 files changed, 125 insertions(+), 23 deletions(-) create mode 100644 Database/createtables.py create mode 100644 Database/data/ammo.csv create mode 100644 Database/data/reloading.csv create mode 100644 Database/update.py diff --git a/Database/createtables.py b/Database/createtables.py new file mode 100644 index 00000000..e69de29b diff --git a/Database/data/ammo.csv b/Database/data/ammo.csv new file mode 100644 index 00000000..d43e67fd --- /dev/null +++ b/Database/data/ammo.csv @@ -0,0 +1,14 @@ +id,type,name,rarity,weight,width,height,stack,value,gunpowder +NULL,rifle_ammo,5.56x45 AP,4,0.02646,1,1,7500,30,15 +NULL,rifle_ammo,5.56x45 FMJ,1,0.02646,1,1,2500,30,10 +NULL,rifle_ammo,5.56x45 HP,2,0.02646,1,1,5000,30,10 +NULL,pistol_ammo,9mm AP,3,0.01984,1,1,5000,45,12 +NULL,pistol_ammo,9mm FMJ,1,0.01984,1,1,2000,45,6 +NULL,pistol_ammo,9mm HP,2,0.01984,1,1,4000,45,6 +NULL,pistol_ammo,.40 S&W AP,3,0.01984,1,1,5500,45,13 +NULL,pistol_ammo,.40 S&W FMJ,1,0.01984,1,1,3000,45,7 +NULL,pistol_ammo,.40 S&W HP,2,0.01984,1,1,4500,45,7 +NULL,rifle_ammo,7.62x39 AP,4,0.02646,1,1,5200,30,15 +NULL,rifle_ammo,7.62x39 FMJ,1,0.02646,1,1,1800,30,10 +NULL,rifle_ammo,7.62x39 HP,2,0.02646,1,1,3600,30,10 +NULL,rifle_ammo,27.62x39 HP,2,0.02646,1,1,3600,30,10 \ No newline at end of file diff --git a/Database/data/reloading.csv b/Database/data/reloading.csv new file mode 100644 index 00000000..536f4aae --- /dev/null +++ b/Database/data/reloading.csv @@ -0,0 +1,15 @@ +id,type,name,rarity,weight,width,height,stack,value +NULL,misc,Primer,1,0.00496,1,1,100,300 +NULL,misc,Gunpowder,1,0.00044,1,2,500,50 +NULL,bullet,5.56 AP Bullet,4,0.00992,1,1,60,5000 +NULL,bullet,5.56 FMJ Bullet,1,0.00992,1,1,60,750 +NULL,bullet,5.56 HP Bullet,2,0.00992,1,1,60,1800 +NULL,casing,5.56 Casing,1,0.00469,1,1,30,1000 +NULL,bullet,9mm AP Bullet,3,0.00992,1,1,60,4000 +NULL,bullet,9mm FMJ Bullet,1,0.00992,1,1,60,400 +NULL,bullet,9mm HP Bullet,2,0.00992,1,1,60,1500 +NULL,casing,9mm Casing,1,0.00469,1,1,30,750 +NULL,bullet,7.62x39 AP Bullet,4,0.00992,1,1,60,3500 +NULL,bullet,7.62x39 FMJ Bullet,1,0.00992,1,1,60,525 +NULL,bullet,7.62x39 HP Bullet,2,0.00992,1,1,60,1260 +NULL,casing,7.62x39 Casing,1,0.00469,1,1,30,500 \ No newline at end of file diff --git a/Database/items.db b/Database/items.db index c6af7fcd1648331cf452b457228be43e9bfa705a..7be37b7d3b79090b71b31bb22f237b24f816373e 100644 GIT binary patch delta 1148 zcmb8vUr19?90%~7yLsu9uCELm*X*g|ZTjYZ2)<5*jSx0PqKX0)aP_6aUkY^~yuH`Si;RO(I&UJLm^ zrpR@2iuko{?Tt3Bb!$g8MO{^A)M2$n4J*HtC1pyvrZgxXc}t#`@5ya)QWm5Y>4h{b zos~j(2fxLS@MU})6LDRf74M2|VnXDECE=NHLpULL*~!yV9lO-S<{vAMo1T*=CLfN_d?SLw>|F#EGs;Cr3=dzl zn+MZdhR4y+baL-(yvWWj{QD!ZuD;o}_r`ZxCuYI_l?XwJAe6{Ymk2-!|Gy=SbP4^y z5h3bQ)Q)7WgeKy0jcbeilkF%ho@5a zQjvYBQmei~&RWIKQNizPQAgBn^_Xf`z9{p`n9`-xC{B4po|SLQ=j9sNEp17!r3X^4 zR4Y00CSJf4ci?g?iJRi0I3f0lb)rZ3E-VP+!d0PO$mBosb8HUlcrIK;XUqtyq@T;vCCFs=C2aEM z;~_S6>v4l)W3~&20WJo(2;f413jhuQ90WKY;6NJo18e}S1MK?)=K-7xuovJQfIR?b z1MCLa1+Wv~tTdbnumfN_z+@LrO`8`uWKAih+e9WmEgV@!tS$r}EcfMb delta 175 zcmZp8z|!!5WrDPz9s>h|Fc7l