Deputy

Deputy is a town role that originally sees itself as Townie, but will become a Cop once the original Cop is dead.

Basic Mechanics
At the start of the game, the Deputy will be told that they are townie. When the Cop in the setup dies, the Deputy will be informed that they will become a Cop, and they gain the ability to check one person every night.

Detailed Mechanics
If the Cop is killed at night, the Deputy finds out the next morning and will convert then. If the Cop is shot or lynched during the day, the Deputy will become a Cop at the start of night.

The Deputy will only become a Cop if the Cop appears to have died. For example, if the Cop is killed and cleaned, the Deputy would not become a Cop.

If there are multiple Cops in the setup, Deputy will become Cop when the first Cop dies. If there are multiple Deputies in the setup, all Deputies will become Cop at once.

When the Deputy's role would be revealed, it would appear as Townie until they become a Cop. At that point, they would appear as Deputy.