summaryrefslogtreecommitdiff
path: root/DSACore/Auxiliary/WeaponImporter.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-05-19 17:00:02 +0200
committerDennis Kobert <d-kobert@web.de>2019-05-19 17:00:02 +0200
commitc4d046858e0822b7c2c540ac2368b2c0e88e7a26 (patch)
tree8ff5cfd8646908784a45762a6148ebc150810160 /DSACore/Auxiliary/WeaponImporter.cs
parentf89f308c525e9deebc6d2cf6416e27dfe1a299dc (diff)
general refectoring
added 42 as dummy Token
Diffstat (limited to 'DSACore/Auxiliary/WeaponImporter.cs')
-rw-r--r--DSACore/Auxiliary/WeaponImporter.cs10
1 files changed, 4 insertions, 6 deletions
diff --git a/DSACore/Auxiliary/WeaponImporter.cs b/DSACore/Auxiliary/WeaponImporter.cs
index ab51efb..3375236 100644
--- a/DSACore/Auxiliary/WeaponImporter.cs
+++ b/DSACore/Auxiliary/WeaponImporter.cs
@@ -1,5 +1,4 @@
-using DSACore.Models.Database;
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
@@ -7,14 +6,13 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using DSACore.FireBase;
using DSACore.Models.Database.DSA;
-using Group = System.Text.RegularExpressions.Group;
namespace DSACore.Auxiliary
{
public class WeaponImporter
{
- private List<MeleeWeapon> Weapons = new List<MeleeWeapon>();
- private List<RangedWeapon> Range = new List<RangedWeapon>();
+ private readonly List<RangedWeapon> Range = new List<RangedWeapon>();
+ private readonly List<MeleeWeapon> Weapons = new List<MeleeWeapon>();
public async Task DownloadWeapons()
{
@@ -48,7 +46,7 @@ namespace DSACore.Auxiliary
{
var talent = lines[j];
- var values = await client.GetStringAsync($"http://diarium.eu/dsa4-forge/ajax/calculate/" + i + "/" +
+ var values = await client.GetStringAsync("http://diarium.eu/dsa4-forge/ajax/calculate/" + i + "/" +
ids[j] + "/0/0/0/0/0/10/0/0/0");
values = Regex.Unescape(values.Replace(@"\t", ""));