Skip to content

Commit

Permalink
Improve Channeling Description
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo56958 committed Feb 29, 2024
1 parent 5dbc20e commit e28a80a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import de.flo56958.minetinker.modifiers.Modifier;
import de.flo56958.minetinker.utils.ChatWriter;
import de.flo56958.minetinker.utils.ConfigurationManager;
import de.flo56958.minetinker.utils.LanguageManager;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.configuration.file.FileConfiguration;
Expand Down Expand Up @@ -95,6 +96,8 @@ public void reload() {
chancePerLevel = config.getInt("ChancePerLevel", 100);

this.description = this.description.replaceAll("%amount", this.chancePerLevel + "%");
if (this.worksOnlyInStorms)
this.description = this.description + " " + LanguageManager.getString("Modifier.Channeling.Description_OnlyStorms");
}

@Override
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/lang/en_US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ Modifier:
Channeling:
Name: "Channeling"
Description: "Summon lightning with a chance of %amount per level!"
Description_OnlyStorms: "This only works during thunderstorms!"
ModifierItemName: "Lightning Infused Shard"
DescriptionModifierItem: "Modifier-Item for the Channeling-Modifier"
Directing:
Expand Down

0 comments on commit e28a80a

Please sign in to comment.