[MIRROR] Demoralization fixes [MDB IGNORE] (#16402)

* 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.

* Demoralization fixes

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-24 21:12:04 +02:00
committed by GitHub
parent 6bf6a6a43a
commit d9a4aaf2cc
6 changed files with 24 additions and 8 deletions

View File

@@ -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)