# Simulate NoobSlayer's state noob_health : float = 20.0 noob_loot : string = GetLootForHealth(noob_health) # Result: noob_loot is "Shield_Potion" # Simulate TankMode's state tank_health : float = 90.0 tank_loot : string = GetLootForHealth(tank_health) # Result: tank_loot is "Assault_Rifle"