fishing changes
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
namespace Kehyeedra3.Services.Models
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Kehyeedra3.Services.Models
|
||||
{
|
||||
public class Fishing
|
||||
{
|
||||
@@ -8,18 +12,80 @@
|
||||
public ulong TXp { get; set; } = 0;
|
||||
public ulong Lvl { get; set; } = 0;
|
||||
|
||||
public ulong CFish1 { get; set; } = 0;
|
||||
public ulong CFish2 { get; set; } = 0;
|
||||
public ulong CFish3 { get; set; } = 0;
|
||||
[Column(TypeName="LONGTEXT")]
|
||||
public string Inventory { get; set; } = "[]";
|
||||
|
||||
public ulong UFish1 { get; set; } = 0;
|
||||
public ulong UFish2 { get; set; } = 0;
|
||||
public ulong UFish3 { get; set; } = 0;
|
||||
public List<FishingInventorySlot> GetInventory()
|
||||
{
|
||||
return JsonConvert.DeserializeObject<List<FishingInventorySlot>>(Inventory);
|
||||
}
|
||||
|
||||
public ulong RFish1 { get; set; } = 0;
|
||||
public ulong RFish2 { get; set; } = 0;
|
||||
public ulong RFish3 { get; set; } = 0;
|
||||
public void SetInventory(List<FishingInventorySlot> inv)
|
||||
{
|
||||
Inventory = JsonConvert.SerializeObject(inv);
|
||||
}
|
||||
|
||||
public ulong LFish { get; set; } = 0;
|
||||
}
|
||||
public class FishObject
|
||||
{
|
||||
public FishSpecies Species;
|
||||
public FishWeight Weight;
|
||||
public FishRarity Rarity;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{Weight.ToString()} {Rarity.ToString()} {Species.ToString()}";
|
||||
}
|
||||
}
|
||||
public enum FishSpecies
|
||||
{
|
||||
//legendary
|
||||
LuckyCatfish = 1,
|
||||
//rare
|
||||
Doomfish = 2,
|
||||
Clownfish = 3,
|
||||
GenericFish = 4,
|
||||
Ultracrab = 5,
|
||||
BlobFish = 6,
|
||||
Psychedelica = 7,
|
||||
//uncommon
|
||||
Gigacrab = 8,
|
||||
MantisShrimp = 9,
|
||||
GoblinFish = 10,
|
||||
BatFish = 11,
|
||||
FrogFish = 12,
|
||||
TigerFish = 13,
|
||||
Stargazer = 14,
|
||||
Isopod = 15,
|
||||
SheepHead = 16,
|
||||
//common
|
||||
Cod = 17,
|
||||
Salmon = 18,
|
||||
Pike = 19,
|
||||
Bass = 20,
|
||||
Crayfish = 21,
|
||||
Betta = 22,
|
||||
PufferFish = 23,
|
||||
Tuna = 24,
|
||||
Carp = 25,
|
||||
Megacrab = 26
|
||||
}
|
||||
public enum FishWeight
|
||||
{
|
||||
Small = 1,
|
||||
Medium = 2,
|
||||
Large = 3
|
||||
}
|
||||
public enum FishRarity
|
||||
{
|
||||
Common = 1,
|
||||
Uncommon = 2,
|
||||
Rare = 3,
|
||||
Special = 4
|
||||
}
|
||||
public class FishingInventorySlot
|
||||
{
|
||||
public FishObject Fish;
|
||||
public ulong Amount;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user