[c2780] Improve some static code. Also cleanup npc_doctor and npc_injured_patient script

(based on commit 86b2bbc)