Skip to content

Commit 5277f8b

Browse files
committed
Updated task for adding new sapling
1 parent 93f7e64 commit 5277f8b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.kiro/specs/apple-sapling-drop/tasks.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,10 @@
135135
- Verify inventory synchronization across clients
136136
- Test with multiple players attacking different AppleTrees simultaneously
137137
- _Requirements: 1.4, 5.2, 5.3, 5.4, 5.5_
138+
139+
- [x] 18. Add AppleSapling to Free World mode item grants
140+
- Open src/main/java/wagemaker/uk/freeworld/FreeWorldManager.java
141+
- Add `inventory.setAppleSaplingCount(250)` to grantFreeWorldItems() method
142+
- Verify AppleSapling is granted alongside other items when Free World mode is activated
143+
- Test in both single-player and multiplayer Free World mode
144+
- _Requirements: 4.1_

src/main/java/wagemaker/uk/freeworld/FreeWorldManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public static void grantFreeWorldItems(Inventory inventory) {
4343
}
4444

4545
inventory.setAppleCount(250);
46+
inventory.setAppleSaplingCount(250);
4647
inventory.setBananaCount(250);
4748
inventory.setBambooSaplingCount(250);
4849
inventory.setBambooStackCount(250);

0 commit comments

Comments
 (0)