declare service SaveInventoryChecks { fn seed() -> void { Inventory.reset(); let sword=Inventory.take_sword(1); let bombs=Inventory.take_drop(0); let heart=Inventory.take_life_item(26); let damage=Inventory.damage_life(128); inventory_slots[20]=1; inventory_slots[21]=1; inventory_slots[22]=5; inventory_slots[33]=127; inventory_slots[34]=128; inventory_slots[35]=255; inventory_slots[36]=0; } fn verify() -> bool { let sword=Inventory.sword_level(); let bombs=Inventory.read_slot(1); let life=Inventory.read_slot(24); let fraction=Inventory.read_slot(25); if sword!=1 || bombs!=4 || life!=50 || fraction!=255 { return false; } let clock=Inventory.read_slot(21); let fairy=Inventory.read_slot(20); let rupees=Inventory.read_slot(22); if clock!=0 || fairy!=1 || rupees!=5 { return false; } let b0=Inventory.read_slot(36); let b1=Inventory.read_slot(33); let b2=Inventory.read_slot(34); let b3=Inventory.read_slot(35); return b0==0 && b1==127 && b2==128 && b3==255; } }