Common game mechanics

Some functions that help you express common game mechanics: