sampleArsenal function

Arsenal sampleArsenal({
  1. int startingSlot = 0,
})

The loadout this game's player starts with.

Arsenal used to default to exactly this, which meant a package that should not know the game has fists shipped its opening inventory. The numbers are unchanged; only where they live is.

Implementation

Arsenal sampleArsenal({int startingSlot = 0}) => Arsenal(
  slots: Weapons.all,
  owned: <WeaponDef>[Weapons.fists, Weapons.pistol],
  ammo: <AmmoType, int>{AmmoType.bullets: 40},
  startingSlot: startingSlot,
);