protected override string OnCombatConsumeAttempt(CombatCreature consumer, CombatCreature opponent, out bool consumeItem, out bool isBadEnd) { isBadEnd = false; StringBuilder sb = new StringBuilder(); sb.Append("You toss a wingstick at your foe! It flies straight and true, almost as if it has a mind of its own as it arcs towards " + opponent.Article(true) + opponent.name + "!" + Environment.NewLine); if (opponent.speed - 80 > Utils.Rand(100) + 1) { //1% dodge for each point of speed over 80 sb.Append("Somehow " + opponent.Article(true) + opponent.name + "'"); sb.Append(" incredible speed allows " + opponent.objectNoun + " to avoid the spinning blades! The deadly device shatters when it impacts " + "something in the distance."); } else { //Not dodged uint damage = (uint)(40 + Utils.Rand(61) + (consumer.strength * 2)); sb.Append(opponent.Article(true).CapitalizeFirstLetter() + opponent.name + " is hit with the wingstick! It breaks apart as it lacerates " + opponent.objectNoun + ". <b>(<font color=\"#800000\">" + damage + "</font>)</b>"); opponent.TakeDamage(damage); } consumeItem = true; return(sb.ToString()); }