Refactor plague of locusts and modernize stuff
Refactor plague of locusts and modernize stuff

Based on feedback from @wershlak/@cizra - refactored the function
completely to reduce code repetition and improve the flow.

Also modernized some syntax in various places.

sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud,sneezymud/sneezymud