fixed chest, improved ui, improved difficulty
This commit is contained in:
@@ -48,10 +48,6 @@ namespace Assets.Scripts
|
||||
{
|
||||
attributes.Add("MPR", int.Parse(json["MPR"].ToString()));
|
||||
}
|
||||
if (json["HPR"] != null)
|
||||
{
|
||||
attributes.Add("HPR", int.Parse(json["HPR"].ToString()));
|
||||
}
|
||||
if (json["MP"] != null)
|
||||
{
|
||||
attributes.Add("MP", int.Parse(json["MP"].ToString()));
|
||||
@@ -192,13 +188,6 @@ namespace Assets.Scripts
|
||||
attributes.Add("MP", Mathf.RoundToInt((float)(10 - (2 * i) + rand.Next(luck) * 0.1)));
|
||||
break;
|
||||
case 7:
|
||||
if (i == 0)
|
||||
{
|
||||
itemName = "health regeneration";
|
||||
}
|
||||
attributes.Add("HPR", Mathf.RoundToInt((float)(3 - (2 * i) + rand.Next(luck) * 0.1)));
|
||||
break;
|
||||
case 8:
|
||||
if (i == 0)
|
||||
{
|
||||
itemName = "mana regeneration";
|
||||
@@ -213,7 +202,6 @@ namespace Assets.Scripts
|
||||
{
|
||||
int bonus = rand.Next(luck);
|
||||
attributes.Add("MPR", Mathf.RoundToInt((float)(3 + bonus * 0.1)));
|
||||
attributes.Add("HPR", Mathf.RoundToInt((float)(3 + bonus * 0.1)));
|
||||
attributes.Add("MP", Mathf.RoundToInt((float)(3 + bonus * 0.1)));
|
||||
attributes.Add("HP", Mathf.RoundToInt((float)(3 + bonus * 0.1)));
|
||||
attributes.Add("STR", Mathf.RoundToInt((float)(3 + bonus * 0.1)));
|
||||
@@ -229,7 +217,7 @@ namespace Assets.Scripts
|
||||
int index = 0;
|
||||
while (true)
|
||||
{
|
||||
index = rand.Next(8) + 1;
|
||||
index = rand.Next(8);
|
||||
counter = 0;
|
||||
for (int j = 0; j < indexes.Length; j++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user