Merge branch 'development'
This commit is contained in:
commit
b62644ab54
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>EpicBosses</artifactId>
|
<artifactId>EpicBosses</artifactId>
|
||||||
<groupId>com.songoda.epicbosses</groupId>
|
<groupId>com.songoda.epicbosses</groupId>
|
||||||
<version>1.2.5</version>
|
<version>1.2.6</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>EpicBosses</artifactId>
|
<artifactId>EpicBosses</artifactId>
|
||||||
<groupId>com.songoda.epicbosses</groupId>
|
<groupId>com.songoda.epicbosses</groupId>
|
||||||
<version>1.2.5</version>
|
<version>1.2.6</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>EpicBosses</artifactId>
|
<artifactId>EpicBosses</artifactId>
|
||||||
<groupId>com.songoda.epicbosses</groupId>
|
<groupId>com.songoda.epicbosses</groupId>
|
||||||
<version>1.2.5</version>
|
<version>1.2.6</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>EpicBosses</artifactId>
|
<artifactId>EpicBosses</artifactId>
|
||||||
<groupId>com.songoda.epicbosses</groupId>
|
<groupId>com.songoda.epicbosses</groupId>
|
||||||
<version>1.2.5</version>
|
<version>1.2.6</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>EpicBosses</artifactId>
|
<artifactId>EpicBosses</artifactId>
|
||||||
<groupId>com.songoda.epicbosses</groupId>
|
<groupId>com.songoda.epicbosses</groupId>
|
||||||
<version>1.2.5</version>
|
<version>1.2.6</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
|
@ -20,9 +20,8 @@ public class HealthMechanic implements IBossMechanic {
|
||||||
public boolean applyMechanic(BossEntity bossEntity, ActiveBossHolder activeBossHolder) {
|
public boolean applyMechanic(BossEntity bossEntity, ActiveBossHolder activeBossHolder) {
|
||||||
if (activeBossHolder.getLivingEntityMap().getOrDefault(1, null) == null) return false;
|
if (activeBossHolder.getLivingEntityMap().getOrDefault(1, null) == null) return false;
|
||||||
|
|
||||||
Object o = SpigotYmlReader.get().getObject("settings.attribute.maxHealth.max");
|
double maxHealthSetting = Double.valueOf( SpigotYmlReader
|
||||||
|
.get().getObject("settings.attribute.maxHealth.max").toString());
|
||||||
double maxHealthSetting = o instanceof Double ? (double) o : (double) (int) o;
|
|
||||||
|
|
||||||
for (EntityStatsElement entityStatsElement : bossEntity.getEntityStats()) {
|
for (EntityStatsElement entityStatsElement : bossEntity.getEntityStats()) {
|
||||||
MainStatsElement mainStatsElement = entityStatsElement.getMainStats();
|
MainStatsElement mainStatsElement = entityStatsElement.getMainStats();
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<parent>
|
<parent>
|
||||||
<artifactId>EpicBosses</artifactId>
|
<artifactId>EpicBosses</artifactId>
|
||||||
<groupId>com.songoda.epicbosses</groupId>
|
<groupId>com.songoda.epicbosses</groupId>
|
||||||
<version>1.2.5</version>
|
<version>1.2.6</version>
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<groupId>com.songoda.epicbosses</groupId>
|
<groupId>com.songoda.epicbosses</groupId>
|
||||||
<artifactId>EpicBosses</artifactId>
|
<artifactId>EpicBosses</artifactId>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<version>1.2.5</version>
|
<version>1.2.6</version>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>api-modules/FactionsM</module>
|
<module>api-modules/FactionsM</module>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<plugin.version>1.2.5</plugin.version>
|
<plugin.version>1.2.6</plugin.version>
|
||||||
<plugin.name>EpicBosses</plugin.name>
|
<plugin.name>EpicBosses</plugin.name>
|
||||||
<plugin.main>com.songoda.epicbosses.EpicBosses</plugin.main>
|
<plugin.main>com.songoda.epicbosses.EpicBosses</plugin.main>
|
||||||
<plugin.author>Songoda</plugin.author>
|
<plugin.author>Songoda</plugin.author>
|
||||||
|
|
Loading…
Reference in New Issue