Core/Artifact Handle Artifact tiers + Artifact unlock (3rd relic bonus)

This commit is contained in:
hondacrx
2018-08-01 14:14:51 -04:00
parent 92481d8d9f
commit ae08c81ce6
19 changed files with 275 additions and 63 deletions
@@ -1401,6 +1401,17 @@ namespace Game.Entities
return _dynamicValues[(int)index][offset];
}
public bool HasDynamicValue(object index, uint value)
{
Cypher.Assert((int)index < _dynamicValuesCount || PrintIndexError(index, false));
uint[] values = _dynamicValues[(int)index];
for (var i = 0; i < values.Length; ++i)
if (values[i] == value)
return true;
return false;
}
public void AddDynamicValue(object index, uint value)
{
Cypher.Assert((int)index < _dynamicValuesCount || PrintIndexError(index, true));