I made it up . . . . . . . but it wasn't as simple as you think . . . . . . Sharpe deceived them, and there are many examples in military history of similar events . . . they didn't surrender because they were cowards, but because they were persuaded (falsely) that their position was hopeless.
There are countless examples of such behaviour . . . . in mediaeval times there was a convention that said any town which did not surrender would be sacked if it was captured (the reason, of course, was to persuade the besieged town to give-up, thus saving the besieger casualties). So, for many years, it was the accepted practice . . . . you force me to fight, and if you lose I'll rip you apart. That isn't the whole story, of course, because such behaviour continued long after that convention fell out of practice. Soldiers are encouraged to brutality . . the normal codes of morality are suspended in wartime, and only strict discipline can restrain soldiers from behaving brutally. A good officer will manage that, many men won't behave brutally, but enough will (think of My Lai). Soldiers besieging a town like Badajoz go through hell, and when the pressure is lifted (ie they win) they lose all restraint and go wild . . . . . some men will try to restrain them, but they feel they're off the leash and they behave abominably. At other times (ie the Russian invasion of Germany in 1945) such behaviour is actually encouraged. Just remember that the moral code of warfare is topsy-turvy, and only discipline will keep it from anarchy.
Sorry, no plans for a visit to Malta at the moment.