It may not be good to add all the tests in the current functions of player.ts. Maybe another mechanism, like inheritance or hooks/plugins can be used to implement specific behaviors of some of the more complicated factions.
It's something to ponder over before doing the complicated code.
It may not be good to add all the tests in the current functions of
player.ts
. Maybe another mechanism, like inheritance or hooks/plugins can be used to implement specific behaviors of some of the more complicated factions.It's something to ponder over before doing the complicated code.