refactor of RogueLikeRestorationProject/srogue to make it meet C11 standard