-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Island Level Configuration #818
Changes from all commits
c3cc083
ade8705
1c3f686
faaf0c9
c6348a5
28800ec
ec3d514
32f3aa0
a595dae
83e8473
4a673ad
0a65028
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
import com.iridium.iridiumcore.utils.StringUtils; | ||
import com.iridium.iridiumskyblock.IridiumSkyblock; | ||
import com.iridium.iridiumskyblock.configs.Biomes; | ||
import com.iridium.iridiumskyblock.configs.Schematics; | ||
import com.iridium.iridiumteams.configs.inventories.NoItemGUI; | ||
import lombok.Getter; | ||
import org.bukkit.Bukkit; | ||
|
@@ -61,7 +62,7 @@ public void addContent(Inventory inventory) { | |
|
||
private List<Placeholder> getBiomeLorePlaceholders(Biomes.BiomeItem item) { | ||
List<Placeholder> placeholders = new ArrayList<>(Arrays.asList( | ||
new Placeholder("amount", IridiumSkyblock.getInstance().getBiomeManager().formatPrice(item.defaultAmount)), | ||
new Placeholder("minLevel", String.valueOf(item.minLevel)), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we not need the Amount placeholder anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, this allows us to fetch the price of the schematic from the config directly without having to set the lore manually every time |
||
new Placeholder("vault_cost", IridiumSkyblock.getInstance().getBiomeManager().formatPrice(item.buyCost.money)) | ||
)); | ||
for (Map.Entry<String, Double> bankItem : item.buyCost.bankItems.entrySet()) { | ||
|
@@ -80,6 +81,10 @@ private List<String> getBiomeLore(Biomes.BiomeItem item) { | |
lore.add(IridiumSkyblock.getInstance().getBiomes().notPurchasableLore); | ||
} | ||
|
||
if(item.minLevel > 1){ | ||
lore.add(IridiumSkyblock.getInstance().getBiomes().levelRequirementLore); | ||
} | ||
|
||
lore.addAll(IridiumSkyblock.getInstance().getBiomes().biomeItemLore); | ||
|
||
return StringUtils.color(StringUtils.processMultiplePlaceholders(lore, placeholders)); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like this is going to confuse things even more. I understand there are alot of people asking this in the Discord, but if we want to remove the creation cost, I feel setting the default cost to 0 for everything is a better aproach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was more for the fact that we could allow pricing for creation and regen to be different (as in, when you create the island, it doesn't cost anything, but when you regen, it does) - we could change it to be free but honestly i dont care about those people lol