protected virtual void InitMagic() { MainColour = ColourManager.getRandomColour(); MainSpell = new Spell(ShapeType.Single, MainColour); ListStatus = new List <StatusEffect>(); TickedStatus = new List <StatusEffect> [System.Enum.GetNames(typeof(StatusType)).Length]; for (int i = 0; i < TickedStatus.Length; i++) { TickedStatus[i] = new List <StatusEffect>(); } }
public Spell() { SpellColour = ColourManager.getRandomColour(); Shape = new Shape(); Power = Random.Range(1, 20); SpellEffect = new StatusEffect(Random.Range(1, 10), /* tick count */ Random.Range(1, 5), /* power */ (StatusType)Random.Range(0, System.Enum.GetNames(typeof(StatusType)).Length)); CastRange = Shape.CastRange; SpellRating = calculateRating(); }
public BonusTile(int x, int y) { hp = Random.Range(1, 20); tick = 1; //Random.Range(1, 3); amount = (int)hp; MainColour = ColourManager.getRandomColour(); Interaction = TileInteraction.Stand; //(TileInteraction)Random.Range (0, 2); Reward = (TileReward)Random.Range(0, 2); this.x = x; this.y = y; CleanTools.GetInstance().SubscribeCleanable(this); InitGameObject(); }