Skip to content

Commit 26d0d62

Browse files
committed
default ABILITYES
1 parent 0c379ad commit 26d0d62

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: src/main/kotlin/dev/sterner/api/item/ItemAbility.kt

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ enum class ItemAbility: StringRepresentable {
1616
MINING_3X3,//Fully implemented
1717
MINING_5X5,//Fully implemented
1818
VAMPIRISM,//TODO implement
19+
HARVEST,
1920
OPENER;//TODO implement
2021

2122
override fun getSerializedName(): String {
@@ -44,6 +45,7 @@ enum class ItemAbility: StringRepresentable {
4445
if (item is IchoriumTerraformer) {
4546
list.add(VAMPIRISM)
4647
list.add(OPENER)
48+
list.add(HARVEST)
4749
}
4850

4951
return list

Diff for: src/main/kotlin/dev/sterner/common/components/VoidBoundRevelationComponent.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class VoidBoundRevelationComponent(private val player: Player) : AutoSyncedCompo
2020
var unlockedItemAbilities = defaultAbilities()
2121

2222
private fun defaultAbilities(): MutableSet<ItemAbility> {
23-
return mutableSetOf(ItemAbility.NONE, ItemAbility.MINING_3X3)
23+
return mutableSetOf(ItemAbility.NONE, ItemAbility.MINING_3X3, ItemAbility.HARVEST)
2424
}
2525

2626
fun addUnlockedItemAbility(ability: ItemAbility) {
@@ -125,7 +125,7 @@ class VoidBoundRevelationComponent(private val player: Player) : AutoSyncedCompo
125125
sync()
126126
}
127127

128-
fun sync(){
128+
private fun sync(){
129129
VoidBoundComponentRegistry.VOID_BOUND_REVELATION_COMPONENT.sync(player)
130130
}
131131

353 Bytes
Loading

0 commit comments

Comments
 (0)