void Test() { count++; c = LGstatData.CharacterGen (); text.text = LGstatData.CharacterGen ().ToString(); string output = string.Format("AVERAGES OUT OF {0} GEN ",count); for (int i = 0; i < (int)LGstatData.TraitType.COUNT; i++) { totals [i] += c.GetTrait( (LGstatData.TraitType)i); output+=(string.Format ("- {0} : {1} ", (LGstatData.TraitType)i, totals[i]/count)); } avText.text = output; }
public bool TriggerSkill(LGcharacter user, LGcharacter target, out bool didCrit) { didCrit = false; int diff = 0; if (RNGesus.AttemptRoll (user.GetTrait (_sourceTrait), target.GetTrait (_targetTrait), out diff)) { // HIT return true; } // MISS return false; }