Demoralization fixes (#69924)

* Demoralization fixes

Blind mobs will no longer be demoralized by posters and graffiti.
Illiterate mobs will no longer be demoralized by the words on posters.
Mobs will no longer be demoralized by posters & graffiti if it's too dark to see them.

Also makes can_read use reading check flags, one for literacy and one for light.
This commit is contained in:
ShizCalev
2022-09-24 03:26:31 -04:00
committed by GitHub
parent 5fcc6cbba7
commit 5c9d863998
6 changed files with 24 additions and 8 deletions
@@ -13,7 +13,7 @@
ui.close()
return
if(!user.can_read(src, check_for_light = FALSE))
if(!user.can_read(src, READING_CHECK_LITERACY))
return
if(HAS_TRAIT(user, TRAIT_CHUNKYFINGERS) && !allow_chunky)