At the end of the situation, a variable will calculate if the Pirates won it (with a reward for the King of Pirates), or lost it: