Added the necessary infrastructure for Rituals to use Demon Will from the Aura.
Added the Demon Will Gauge.
This commit is contained in:
parent
12094c1153
commit
767b09221c
16 changed files with 189 additions and 27 deletions
|
@ -46,9 +46,11 @@ public interface IMasterRitualStone
|
|||
|
||||
void provideInformationOfRangeToPlayer(EntityPlayer player, String range);
|
||||
|
||||
void provideInformationOfWillConfigToPlayer(EntityPlayer player, List<EnumDemonWillType> typeList);
|
||||
|
||||
void setActiveWillConfig(EntityPlayer player, List<EnumDemonWillType> typeList);
|
||||
|
||||
boolean setBlockRangeByBounds(EntityPlayer player, String range, BlockPos offset1, BlockPos offset2);
|
||||
|
||||
List<EnumDemonWillType> getCurrentActiveWillConfig();
|
||||
List<EnumDemonWillType> getActiveWillConfig();
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
|
|||
*/
|
||||
@Getter
|
||||
@RequiredArgsConstructor
|
||||
@EqualsAndHashCode(exclude = { "modableRangeMap", "ritualComponents", "renderer" })
|
||||
@EqualsAndHashCode(exclude = { "modableRangeMap", "ritualComponents", "renderer", "volumeRangeMap", "horizontalRangeMap", "verticalRangeMap" })
|
||||
@ToString
|
||||
public abstract class Ritual
|
||||
{
|
||||
|
@ -231,7 +231,7 @@ public abstract class Ritual
|
|||
|
||||
protected boolean canBlockRangeBeModified(String range, AreaDescriptor descriptor, IMasterRitualStone master, BlockPos offset1, BlockPos offset2)
|
||||
{
|
||||
List<EnumDemonWillType> willConfig = master.getCurrentActiveWillConfig();
|
||||
List<EnumDemonWillType> willConfig = master.getActiveWillConfig();
|
||||
int maxVolume = getMaxVolumeForRange(range, willConfig);
|
||||
int maxVertical = getMaxVerticalRadiusForRange(range, willConfig);
|
||||
int maxHorizontal = getMaxHorizontalRadiusForRange(range, willConfig);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue