@@ -15,9 +15,9 @@ provides this for new items so it is not something you have to give
...
@@ -15,9 +15,9 @@ provides this for new items so it is not something you have to give
1. To add a new default item, add the ID to [DefaultItemsForTest.java](https://gitlab.engr.ship.edu/merlin/freshmanrpgsuite/-/blob/main/FreshmanRPG/GameShared/src/test/java/edu/ship/engr/shipsim/datatypes/DefaultItemsForTest.java), and when the database is rebuilt, it will be located in the DefaultItems table.
1. To add a new default item, add the ID to [DefaultItemsForTest.java](https://gitlab.engr.ship.edu/merlin/freshmanrpgsuite/-/blob/main/FreshmanRPG/GameShared/src/test/java/edu/ship/engr/shipsim/datatypes/DefaultItemsForTest.java), and when the database is rebuilt, it will be located in the DefaultItems table.
### Add vanity item to the shop
### Add vanity item to the shop
1. Add the items price to the items creation line of code in [VanityForTest.java](https://gitlab.engr.ship.edu/merlin/freshmanrpgsuite/-/blob/main/FreshmanRPG/GameShared/src/test/java/edu/ship/engr/shipsim/datatypes/VanityItemsForTest.java)
1. Add the items price to the items creation line of code in [VanityItemsForTest.java](https://gitlab.engr.ship.edu/merlin/freshmanrpgsuite/-/blob/main/FreshmanRPG/GameShared/src/test/java/edu/ship/engr/shipsim/datatypes/VanityItemsForTest.java)
1. The shop table is created from the items table so it does not have to be explicitly added by someone here.
1. The shop table is created from the items table so it does not have to be explicitly added by someone here.
### Add vanity item to a players inventory
### Add vanity item to a players inventory
1. The inventory table consists of a player ID, a vanity ID, and a flag for if they are currently wearing that item.
1. The inventory table consists of a player ID, a vanity ID, and a flag for if they are currently wearing that item.
1. To add an item to a player’s inventory, add the ID of the player who is going to own the item, the ID of the vanity item they should own, and a 1 if they are wearing it or 0 if they are not to [PlayerOwnsVanityForTest.java](https://gitlab.engr.ship.edu/merlin/freshmanrpgsuite/-/blob/main/FreshmanRPG/GameShared/src/test/java/edu/ship/engr/shipsim/datatypes/VanityInventoryItemsForTest.java), and once the database is rebuilt, it will be located in the VanityInventory table.
1. To add an item to a player’s inventory, add the ID of the player who is going to own the item, the ID of the vanity item they should own, and a 1 if they are wearing it or 0 if they are not to [VanityInventoryItemsFotTest.java](https://gitlab.engr.ship.edu/merlin/freshmanrpgsuite/-/blob/main/FreshmanRPG/GameShared/src/test/java/edu/ship/engr/shipsim/datatypes/VanityInventoryItemsForTest.java), and once the database is rebuilt, it will be located in the VanityInventory table.