OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
200 stars 109 forks source link

Implements `hearers()` and `ohearers()` #1919

Open TheTyrant25 opened 1 month ago

TheTyrant25 commented 1 month ago

Fixes #1755

Using very similar code to viewers() and oviewers, a new boolean argument has been added to CalculateVisibility(), called ignore_light (false by default). Setting it to true will skip all the luminosity checks in the algorithm. As there aren't actually any at the moment, it does nothing different, but once CalculateVisibility() is fully finished, it hopefully should.

amylizzle commented 1 month ago

Also you could probably add a test in testgame? Would be good.

github-actions[bot] commented 2 weeks ago

This pull request has conflicts, please resolve those before we can evaluate the pull request.