Implements armor trim salvage #24
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Blacksmith/pipeline/head This commit looks good
This commit is contained in:
@ -141,6 +141,16 @@ public class ScrapperNPCSettings implements TraitSettings<ScrapperSetting> {
|
||||
return asString(ScrapperSetting.COST_MESSAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the message to use for displaying armor trim salvage cost
|
||||
*
|
||||
* @return <p>The message to use for displaying armor trim salvage cost</p>
|
||||
*/
|
||||
@NotNull
|
||||
public String getArmorTrimCostMessage() {
|
||||
return asString(ScrapperSetting.COST_MESSAGE_ARMOR_TRIM);
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public String getCoolDownUnexpiredMessage() {
|
||||
@ -297,6 +307,15 @@ public class ScrapperNPCSettings implements TraitSettings<ScrapperSetting> {
|
||||
return asBoolean(ScrapperSetting.SALVAGE_ENCHANTED);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether salvage of armor trims is enabled
|
||||
*
|
||||
* @return <p>True if this scrapper can salvage armor trims</p>
|
||||
*/
|
||||
public boolean salvageArmorTrims() {
|
||||
return asBoolean(ScrapperSetting.SALVAGE_ARMOR_TRIMS);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the title of this scrapper NPC
|
||||
*
|
||||
@ -371,4 +390,29 @@ public class ScrapperNPCSettings implements TraitSettings<ScrapperSetting> {
|
||||
return asString(ScrapperSetting.CANNOT_SALVAGE_ENCHANTED_MESSAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the message to display when explaining that this scrapper is unable to salvage armor trims
|
||||
*
|
||||
* @return <p>The cannot salvage armor trim message</p>
|
||||
*/
|
||||
@NotNull
|
||||
public String getCannotSalvageArmorTrimMessage() {
|
||||
return asString(ScrapperSetting.CANNOT_SALVAGE_ARMOR_TRIM_MESSAGE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the message to display when explaining that this scrapper is unable to find salvage for the armor trim
|
||||
*
|
||||
* <p>Because there is no direct way (that I have found) to convert TrimMaterial and TrimPattern to Material, armor
|
||||
* trim salvaging relies on material string and a hard-coded map. As those are prone to breaking because of API
|
||||
* changes, there is a high likelihood that cases will arise when the scrapper is unable to find the correct
|
||||
* materials.</p>
|
||||
*
|
||||
* @return <p>The cannot find armor trim salvage message</p>
|
||||
*/
|
||||
@NotNull
|
||||
public String getArmorTrimSalvageNotFoundMessage() {
|
||||
return asString(ScrapperSetting.ARMOR_TRIM_SALVAGE_NOT_FOUND_MESSAGE);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user