Does anyone know why it doesnt work the error only happens when i try to add in loot
Code:
new State("Attack",
new Spawn("Ghastly Warrior", maxChildren: 3, initialSpawn: 2, coolDown: 10000),
new Spawn("Ghastly Mage", maxChildren: 3, initialSpawn: 2, coolDown: 10000),
new HpLessTransition(0.75, "Attack1"
),
new State("Attack1",
new Shoot(10, count: 8, fixedAngle: 0, shootAngle: 6, projectileIndex: 2, coolDown: 50),
new Shoot(10, count: 8, fixedAngle: 180, shootAngle: 6, projectileIndex: 2, coolDown: 50),
new Shoot(10, count: 8, fixedAngle: 90, shootAngle: 6, projectileIndex: 1, coolDown: 50),
new Shoot(10, count: 8, fixedAngle: 270, shootAngle: 6, projectileIndex: 1, coolDown: 50),
new HpLessTransition(0.54, "Attack2"
),
new State("Attack2",
new ConditionalEffect(ConditionEffectIndex.Invulnerable),
new Spawn("Liquid Blob", maxChildren: 5, initialSpawn: 2, coolDown: 10000),
new EntityNotExistsTransition("Liquid Blob", 200, "Phase2")
),
new State("Phase2",
new Shoot(20, count: 10, shootAngle: 36, projectileIndex: 3, coolDown: 1500, coolDownOffset: 1500),
new Shoot(20, count: 8, shootAngle: 45, projectileIndex: 0, coolDown: 1400, coolDownOffset: 1400)
),
new Threshold(0.025,
new TierLoot(9, ItemType.Weapon, 0.1),
new TierLoot(4, ItemType.Ability, 0.1),
new TierLoot(9, ItemType.Armor, 0.1),
new TierLoot(3, ItemType.Ring, 0.05),
new TierLoot(10, ItemType.Armor, 0.05),
new TierLoot(10, ItemType.Weapon, 0.05),
new TierLoot(4, ItemType.Ring, 0.025),
new ItemLoot("Potion of Vitality", 1),
new ItemLoot("Potion of Defense", 0.5),
new ItemLoot("Demon Blade", 0.01),
new ItemLoot("Supply Crate Series #1", 0.33)