forked from SteamWar/SteamWar
Turn the touches back into reward designs styled like any other
The Touch setting is gone. Its unique mechanics become reward designs that use the entry's particle: Burst (on jumping, landing or sneaking, as a puff or a ring), Footprints, Team link, Shimmer and Heartbeat. Each is unlocked by any of the rewards that had it, and Burst's triggers are locked separately. The wing beat becomes the Beat on jump wing motion, unlocked by WarGear Season 2022. December snow and the glyphs are dropped: the first is a plain particle with a condition, the second only works with enchanting glyphs.
This commit is contained in:
@@ -244,6 +244,24 @@ public interface ParticleRequirement {
|
||||
}.or(SERVER_TEAM);
|
||||
}
|
||||
|
||||
// Met by meeting any of the requirements; the lore lists them one per line
|
||||
static ParticleRequirement anyOf(ParticleRequirement... requirements) {
|
||||
return new ParticleRequirement() {
|
||||
@Override
|
||||
public String getRequirementName(Player player) {
|
||||
return java.util.Arrays.stream(requirements).map(requirement -> requirement.getRequirementName(player)).filter(Objects::nonNull).collect(Collectors.joining("\n"));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean matches(UnlockContext context) {
|
||||
for (ParticleRequirement requirement : requirements) {
|
||||
if (requirement.test(context)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// The alternative is checked first, as it is usually the cheap server team check
|
||||
default ParticleRequirement or(ParticleRequirement particleRequirement) {
|
||||
return new ParticleRequirement() {
|
||||
|
||||
Reference in New Issue
Block a user