mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-17 12:35:26 +00:00
## About The Pull Request <details> <summary>Directional flashlights are here!</summary>  </details> <details> <summary>Has this ever bothered you? The light cone overlay is directional, but not the flashlight itself</summary>  </details> Me too, so I went and made directional sprites for all of the flashlights that have directional lights. These flashlights change their direction when dropped or thrown to match the user doing the dropping. <details> <summary>Shown here</summary>  </details> ### But wait, there's more! --- I also added a number of on/off inhand sprites for _most_ of the holdable existing light sources in the game (sorry, making a tiny banana lamp will have to wait for another time). <details> <summary>Noteworthy ones: animated candles! and flares too</summary>   </details> --- ### Other things You can now light candles with another candle. Why was this not possible?  <details> <summary>More sprite makeovers/additions here</summary> Desk lamp:  The iconic green lamp gets a makeover:  _The_ flashlight:  Syndicate lantern:  Flashdark:  Lantern:  Wisp lantern (both a new inhand and icon sprite):  Seclight:  </details> ## Why It's Good For The Game Better visuals for the game. Handheld lighting objects are probably some of the more commonly used items, and so having sprites that accurately represent them in game is a nice touch. Also did some code refactoring, cleanup/slight optimization tweaks while I was in the flashlight file. Notably candles were needlessly calling update_appearance every process tick. Now they will only do that if they actually need an update (if their wax level changes). ## Changelog 🆑 fix: candles can now be used to light other candles, cigarettes, and anything else that needs lighting in a pinch. fix: flashlights that have directional lights now have directional sprites to match fix: candles can now be snuffed again imageadd: adds new inhand sprites for most flashlights in the game, including animated flares and candles refactor: cleaned up flashlight.dm's unnecessary bits and made some slight improvements /🆑