public TileInfo(TTile template) { tTileHash = template.Hash; mana = template.mana; isObstacle = template.type == TileType.Obstacle; isExplored = false; isEmpty = true; stayEntityHash = 0; }
public TileInfo(int tTileHash) { this.tTileHash = tTileHash; TTile template = tTileHash.GetTTile(); mana = template.mana; isObstacle = template.type == TileType.Obstacle; isExplored = false; isEmpty = true; stayEntityHash = 0; }
public void ApplyEffect() { TTile tTile = Info.tTileHash.GetTTile(); foreach (var skill in tTile.impactSkills) { skill.ApplyEffect(0, Loc, Loc, true); } foreach (var buff in tTile.impactBuffs) { StayEntity.EntityBuffManager.AddBuff(new BuffHandler(0, StayEntityHash, buff.Hash)); } }
public void SetTemplate(TTile template) { this.tTileHash = template.Hash; mana = template.mana; isObstacle = template.type == TileType.Obstacle; }