How to reproduce:
- Place some rail & artillery wagon.
- Hover over the wagon and run one or multiple of:
Code: Select all
/c game.player.selected.get_inventory(1).insert({name = 'artillery-shell', count = 10}) /c game.player.selected.get_inventory(1)[1].set_stack({name = 'artillery-shell', count = 10}) -- After inserting a single one: /c game.player.selected.get_inventory(1)[1].count = 10
Multiple artillery shells to be inside the wagon, up to the limit a player can insert of 100.
Result:
At most 1 artillery shell is inserted.