Skip to content
Snippets Groups Projects
Commit c9d3fd68 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Replaced the Inventory skill with Concentration.

parent ba61979c
No related branches found
No related tags found
1 merge request!38Juliuses nye super branch merge
......@@ -18,7 +18,7 @@ namespace BigSock {
public int Damage { get; set; }
public int Speed { get; set; }
public int Luck { get; set; }
public int Inventory { get; set; }
public int Concentration { get; set; }
}
......@@ -32,7 +32,7 @@ namespace BigSock {
Damage,
Speed,
Luck,
Inventory,
Concentration,
}
/*
......@@ -49,8 +49,8 @@ namespace BigSock {
a.MP += b.MP;
a.Damage += b.Damage;
a.Speed += b.Speed;
//a.Luck += b.Luck;
//a.Inventory += b.Inventory;
a.Luck += b.Luck;
a.Concentration += b.Concentration;
return a;
}
......@@ -74,20 +74,19 @@ namespace BigSock {
case Skill.Damage:
stats.Damage += amount * increase.Damage;
stats.Knockback += amount * increase.Knockback;
stats.Range += amount * increase.Range;
break;
case Skill.Speed:
stats.MoveSpeed += amount * increase.MoveSpeed;
stats.AttackSpeed += amount * increase.AttackSpeed;
stats.ProjectileSpeed += amount * increase.ProjectileSpeed;
break;
case Skill.Luck:
stats.CritChance += amount * increase.CritChance;
stats.CritDamageModifier += amount * increase.CritDamageModifier;
break;
case Skill.Inventory:
// Special code, must adjust inventory based on what level it increased to.
// Might be problematic with increase & shrink.
case Skill.Concentration:
stats.Range += amount * increase.Range;
stats.ProjectileSpeed += amount * increase.ProjectileSpeed;
//- Add accuracy skill
break;
default:
throw new NotImplementedException();
......
......@@ -272,15 +272,16 @@ namespace BigSock {
// Damage
Damage = 0.1f,
Knockback = 0.1f,
Range = 0.1f,
// Speed
MoveSpeed = 0.1f,
AttackSpeed = 0.1f,
ProjectileSpeed = 0.1f,
// Luck?
// Luck
CritChance = 0.05f,
CritDamageModifier = 0.1f,
// Inventory?
// Concentration
Range = 0.1f,
ProjectileSpeed = 0.1f,
//-- Accuracy
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment