element pressure blocking abilities?

  • tacocat300000
    24th Sep 2023 Member 0 Permalink

    Ive been wondering what different elements pressure blocking abilities are. obviously, titanium has the highest, but of the solids what has the lowest? of the liquids what has the highest/lowest? of the gases what has the highest/lowest? It frustrates me slightly because each element has an "Acid desolve rate" but not a "pressure blocking" or "air resistance" (if air resistance is even the right term...) and I keep building stuff that needs a solid wall that blocks particles but lets as much air through as possible, and I dont like using the "walls" tab because they are indestructable and less precise. I would be nice if it was included on the wiki, but I understand if its too complicated.

  • Jerehmia
    24th Sep 2023 Member 0 Permalink

    I just checked the code on github, as far as I can see TTAN is the only element that updates two special arrays in the simulation called map_blockair[y][x] and map_blockairh[y][x], so the pressure blocking is a hand-coded property of TTAN that no other element has.

  • tacocat300000
    25th Sep 2023 Member 0 Permalink

    I did some experementing on my own and it seems some solids have better pressure blocking than others, an example is that shield lets through more air than wood. I dont know the exact rates, but I can tell there is a difference. this difference is mainly what im talking about

  • Jerehmia
    25th Sep 2023 Member 0 Permalink

    Ah okay, that's the AirLoss element property, it sets how much a particle of that element slows down moving air it touches. You can look those up in the console:

    elements.property(tpt.element("<element name>"), "AirLoss")

    where <element name> is something like WOOD or SHLD.

    The returned value is between 0 and 1, 1 means no slowdown, 0 means maximal slowdown.

     

    elements.property(tpt.element("WOOD"), "AirLoss") 0.89999997615814

    elements.property(tpt.element("SHLD"), "AirLoss") 1