parameters: (sys_id: int)
return_statement: return retval
docstring: Get the supply level of a system.
  
      Negative values indicate jumps away from supply. Return -99 if system is not connected.
docstring_summary: Get the supply level of a system.
docstring_tokens: Get the supply level of a system .
function: def get_system_supply(sys_id: int) -> int:
      """
      Get the supply level of a system.
  
      Negative values indicate jumps away from supply. Return -99 if system is not connected.
      """
      far_away_from_supply = -99
  
      retval = _get_system_supply_map().get(sys_id, None)
      if retval is None:
          # This is only expected to happen if a system has no path to any supplied system.
          # As the current code should not allow such queries, this is logged as warning.
          # If future code breaks this assumption, feel free to adjust logging.
          warning("Queried supply value of a system not mapped in empire.supplyProjections(): %d" % sys_id)
          return far_away_from_supply
      return retval
function_tokens: def get_system_supply ( sys_id : int ) -> int : far_away_from_supply = - 99 retval = _get_system_supply_map ( ) . get ( sys_id , None ) if retval is None : # This is only expected to happen if a system has no path to any supplied system. # As the current code should not allow such queries, this is logged as warning. # If future code breaks this assumption, feel free to adjust logging. warning ( "Queried supply value of a system not mapped in empire.supplyProjections(): %d" % sys_id ) return far_away_from_supply return retval