Improves messages when trying to salvage an item
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good

Implements unimplemented too damaged for salvage message
Adds two new messages explaining whether an item will produce full or partial salvage
This commit is contained in:
2024-05-05 15:37:38 +02:00
parent e956c7dda7
commit 2612f4f7d8
6 changed files with 113 additions and 23 deletions

View File

@ -136,6 +136,7 @@ public class ScrapperNPCSettings implements TraitSettings<ScrapperSetting> {
*
* @return <p>The message to use for displaying salvage cost</p>
*/
@NotNull
public String getCostMessage() {
return asString(ScrapperSetting.COST_MESSAGE);
}
@ -310,4 +311,34 @@ public class ScrapperNPCSettings implements TraitSettings<ScrapperSetting> {
return asString(ScrapperSetting.INSUFFICIENT_FUNDS_MESSAGE);
}
/**
* Gets the message to display if an item is too damaged to produce any salvage
*
* @return <p>The no salvage message</p>
*/
@NotNull
public String getTooDamagedMessage() {
return asString(ScrapperSetting.TOO_DAMAGED_FOR_SALVAGE_MESSAGE);
}
/**
* Gets the message to display when explaining that full salvage will be given for an item
*
* @return <p>The full salvage message</p>
*/
@NotNull
public String getFullSalvageMessage() {
return asString(ScrapperSetting.FULL_SALVAGE_MESSAGE);
}
/**
* Gets the message to display when explaining that only partial salvage will be given for an item
*
* @return <p>The partial salvage message</p>
*/
@NotNull
public String getPartialSalvageMessage() {
return asString(ScrapperSetting.PARTIAL_SALVAGE_MESSAGE);
}
}