please don't call variables D. If you wanna be really cool fix up the rest of this proc, but at the least don't make things worse https://github.com/tgstation/tgstation/blob/master/.github/CONTRIBUTING.md#use-descriptive-and-obvious-names