void OnMouseDown() { List <Prince> allPrince = SceneHandler.getAllMeeplesFromType <Prince>(); if (!allPrince[0].goFeastused) { List <Companion> allComp = SceneHandler.getAllMeeplesFromType <Companion>(); List <PackAnimal> allPack = SceneHandler.getAllMeeplesFromType <PackAnimal>(); int CompCount = allComp.Count - allPack.Count; int amountFood = CompCount * 3; foreach (PackAnimal p in allPack) { int tempMount = p.loadCapacity - p.ActualLoad; if (tempMount > 0) { if (tempMount >= amountFood) { p.ActualLoad += amountFood; break; } else { int amountToFill = amountFood - tempMount; p.ActualLoad += amountToFill; amountFood = amountFood - tempMount; } } } allPrince[0].goFeastused = true; } ClickWorker.destroyRadialMenu(); }
void OnMouseDown() { if (SceneHandler.activeCompanion.HasActionOutstanding) { SceneHandler.scoutingActive = true; SceneHandler.activeCompanion.HasActionOutstanding = false; } ClickWorker.destroyRadialMenu(); }
void OnMouseDown() { List <Prince> allPrince = SceneHandler.getAllMeeplesFromType <Prince>(); if (!allPrince[0].goVIPused) { List <Healer> allHeal = SceneHandler.getAllMeeplesFromType <Healer>(); List <Hunter> allHunter = SceneHandler.getAllMeeplesFromType <Hunter>(); List <Mercenary> allMerc = SceneHandler.getAllMeeplesFromType <Mercenary>(); List <Merchant> allMerch = SceneHandler.getAllMeeplesFromType <Merchant>(); List <Scout> allScout = SceneHandler.getAllMeeplesFromType <Scout>(); foreach (Healer h in allHeal) { h.Strength += 2; } foreach (Hunter h in allHunter) { h.Strength += 2; } foreach (Mercenary h in allMerc) { h.Strength += 2; } foreach (Merchant h in allMerch) { h.Strength += 2; } foreach (Prince h in allPrince) { h.Strength += 2; } foreach (Scout h in allScout) { h.Strength += 2; } allPrince[0].goVIPused = true; } ClickWorker.destroyRadialMenu(); }
void OnMouseDown() { //butcher implementation missing. ClickWorker.destroyRadialMenu(); }
// Use this for initialization void OnMouseDown() { SceneHandler.activeCompanion.Alive = false; ClickWorker.destroyRadialMenu(); }
void OnMouseDown() { ClickWorker.destroyRadialMenu(); SceneHandler.activeCompanion.openStatistics(); }