/* * Attribute: volcanicity * * Returns the measure of volcanicity of the body * 0.0 = none, 1.0 = lava planet * * Availability: * * January 2018 * * Status: * * experimental */ static int l_sbody_attr_volcanicity(lua_State *l) { SystemBody *sbody = LuaObject<SystemBody>::CheckFromLua(1); lua_pushnumber(l, sbody->GetVolcanicity()); return 1; }