//------------------------------------------------------------------------------------------------------ //STATISTICS MANIPULATION //------------------------------------------------------------------------------------------------------ public int GetCharStat(string s) { int val = -1; PrimaryOrTypeStatistics.TryGetValue(s, out val); //its not a default stat, try derived if (val < 1) { if (GetLuaScript != null) { val = Convert.ToInt32(GetLuaScript.GetFunction(s).Call(this).GetValue(0)); } } return(val); }
public bool IsDisabled() { GetLuaScript.Push(disabled); return(disabled); }