homothetyhk / HollowKnight.ItemChanger

A Hollow Knight mod for editing and adding items
GNU Lesser General Public License v2.1
15 stars 12 forks source link

Light up dark rooms when picking up lantern #12

Closed flibber-hk closed 2 years ago

flibber-hk commented 2 years ago

Code mostly copied from SceneManager.OnEnable

flibber-hk commented 2 years ago

It only does anything if the room the player is in is currently dark, so it won't do anything in e.g. Fungus1_34 (RE adding the light to the running animation) - if you think it's better with that then just put the FindObjectsOfType in the if (sm.darknessLevel) check, and move the rest out