Skip to content

v2.2.0

Compare
Choose a tag to compare
@Crossedfall Crossedfall released this 25 Oct 16:10

From: https://github.com/Putnam3145/auxmos/releases/tag/v2.2.0


Added a couple new functions:

  1. Mixture::share_ratio(giver, ratio), which allows one to, say, make a gas mixture 7/8 of itself and 1/8 of another gas mixture (only used for planet atmos, but it has plenty of diffusion possibilities, and I might add a way to get it from byond later, once I write the migration)
  2. Mixture::copy_to_mutable(), which returns a newly-allocated gas mixture with all the same properties as the old one, but mutable this time. This is primarily to work with all the various traits that return mutable copies of gas mixtures--no reason for a copy of a gas mixture to continue to be immutable. Immutability still needs rethought, but I can't really imagine how that could even be done.

This all has the main effect of making planet atmos no longer completely broken, as it was before. Recommend updating ASAP.