Releases: MEEPofFaith/black-holes-library
Releases · MEEPofFaith/black-holes-library
Fix Server Crash
Fixed BHL attempting to load shaders on headless.
Fix
- Fixed incorrect default values that caused SwirlEffects to have 0 distance by default.
Update Stuff
- Modernized BlackHoleBulletType despawn code
- BlackHoleBulletType defaults values now allow splash damage
- Updated swirl effect drawing
- Simply draw code by using a trail - Also makes the points show their actual trajectory.
- API change: Replaced
lerp
andedgeColor
inSwirlEffect
withcolorFrom
andcolorTo
More bug fixes and adjustments
- Added default values to
SwirlEffect
- Added option to draw a star-shaped glow in the center of black holes
- Units with black hole abilities are now automatically added to the immune list
- The immunities are now
ObjectSet
s instead ofSeq
s. If you're adding to the immunities in your mod, you must update to function in this version and beyond. - Fixed error when
SwirlEffect
has no edge color - Fixed black hole bullets not being immune to suction
Bug fixes and adjustments
- Added
BHLayer
to more easily reference the start and end points of the frame buffer.- The end layer is no longer
Layer.max
so that stuff can be drawn over if desired.
- The end layer is no longer
- Fixed issues with the swirl effects
BlackHoleBulletType
swirl effects did not scale with the bullet's growth.BlackHoleAbility
swirl effects did not spawn in the correct location when sucking things in.
More BlackHoleAbility options
- Option to not draw the blackhole
- Option to only be active when shooting
- Display stats
- Fix damage and range being completely wrong
- Swirl effect parentization
- Note: Becomes buggy when another unit enters the area and I have no idea how to fix that yet
BlackHoleBulletType and BlackHoleAbility
Added BlackHoleBulletType
from PM to this mod, as well as a BlackHoleAbility
that allows you to attach a black hole to a unit. Both are added to the class map, making them json accessable.
Other changes:
- Adjusted the rim glow radius
- Made
SwirlEffect
work properly with json (Added empty constructor) - Better support for setting
SwirlEffect
spin direction
Add SwirlEffect to the classmap
Whoopsies I forgor. *dies*
Add DrawBlackHole and BlackHolePart
This way you don't have to make your own. Additionally, they are added to the ClassMap so json mods can use them.
Json.Black.Holes.mp4
Prevent Crashing when too many Black Holes are on Screen at Once
Number of black holes is now capped at 510 to prevent crashing. 510 is still a lot so I doubt this'll ever be an issue.