OpenDreamProject / OpenDream

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

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

Closed TheTyrant25 closed 1 month ago

TheTyrant25 commented 3 months 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 3 months ago

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

github-actions[bot] commented 2 months ago

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

ike709 commented 1 month ago

https://github.com/TheTyrant25/OpenDream/pull/1