added font, updated ui, fixed some code

This commit is contained in:
TAASONI3
2023-12-13 12:49:38 +01:00
parent 10ad860d3e
commit 17a0a22dd4
65 changed files with 1697 additions and 5019 deletions

View File

@@ -1,4 +1,5 @@
using Newtonsoft.Json.Linq;
using Assets.Scripts.Player;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -21,20 +22,18 @@ namespace Assets.Scripts.Slimes
protected Item item;
protected int luck;
public BasicSlime(Player player)
public BasicSlime(PlayerGameObject player)
{
//health,maxHealth,secondary,maxSecondary,strength,dexterity,intelligence,level,experience,maxExperience,points,luck
int[] playerStats = player.getStats();
maxHealth = playerStats[1];
maxHealth = player.getPlayerStat("MaxHealth").getAmount();
health = maxHealth;
maxSecondary = playerStats[3];
maxSecondary = player.getPlayerStat("MaxSecondary").getAmount();
secondary = maxSecondary;
strength = playerStats[4];
dexterity = playerStats[5];
intelligence = playerStats[6];
experience = (int)(10 + playerStats[7] * 2.5f);
level = playerStats[7];
luck = playerStats[11];
strength = player.getPlayerStat("Strength").getAmount();
dexterity = player.getPlayerStat("Dexterity").getAmount();
intelligence = player.getPlayerStat("Intelligence").getAmount();
experience = (int)(10 + player.getPlayerStat("Experience").getAmount() * 2.5f);
level = player.getPlayerStat("Level").getAmount();
luck = player.getPlayerStat("Luck").getAmount();
}
public BasicSlime(JToken json)