-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General minigame overhaul #134
base: development
Are you sure you want to change the base?
Conversation
# Conflicts: # pom.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments ;)
@@ -1,6 +1,6 @@ | |||
/* | |||
* Village Defense - Protect villagers from hordes of zombies | |||
* Copyright (c) 2022 Plugily Projects - maintained by Tigerpanzer_02 and contributors | |||
* Copyright (C) 2022 Plugily Projects - maintained by 2Wild4You, Tigerpanzer_02 and contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't change
@@ -1,6 +1,6 @@ | |||
/* | |||
* Village Defense - Protect villagers from hordes of zombies | |||
* Copyright (c) 2022 Plugily Projects - maintained by Tigerpanzer_02 and contributors | |||
* Copyright (C) 2022 Plugily Projects - maintained by 2Wild4You, Tigerpanzer_02 and contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't change
getMessageManager().registerMessage("KIT_CONTENT_MEDIC_GAME_ITEM_HOMECOMING_RESPAWNED_BY_TITLE", new Message("Kit.Content.Medic.Game-Item.Homecoming.Respawned-By-Title", "")); | ||
getMessageManager().registerMessage("KIT_CONTENT_MEDIC_GAME_ITEM_HOMECOMING_RESPAWNED_BY_SUBTITLE", new Message("Kit.Content.Medic.Game-Item.Homecoming.Respawned-By-Subtitle", "")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
title and subtitle can be made into one line with timings, check https://github.com/Plugily-Projects/MiniGamesBox/blob/development/MiniGamesBox%20Classic/src/main/java/plugily/projects/minigamesbox/classic/arena/PluginArenaManager.java#L112 (TitleBuilder)
@@ -1,6 +1,6 @@ | |||
/* | |||
* Village Defense - Protect villagers from hordes of zombies | |||
* Copyright (c) 2022 Plugily Projects - maintained by Tigerpanzer_02 and contributors | |||
* Copyright (C) 2022 Plugily Projects - maintained by 2Wild4You, Tigerpanzer_02 and contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't change
@@ -1,6 +1,6 @@ | |||
/* | |||
* Village Defense - Protect villagers from hordes of zombies | |||
* Copyright (c) 2022 Plugily Projects - maintained by Tigerpanzer_02 and contributors | |||
* Copyright (C) 2022 Plugily Projects - maintained by 2Wild4You, Tigerpanzer_02 and contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't change
src/main/java/plugily/projects/villagedefense/kits/premium/WizardKit.java
Outdated
Show resolved
Hide resolved
src/main/java/plugily/projects/villagedefense/kits/premium/WizardKit.java
Outdated
Show resolved
Hide resolved
VersionUtils.sendParticles("TOWN_AURA", null, loc, 5, 0, 0, 0); | ||
for(Entity en : loc.getChunk().getEntities()) { | ||
if(!(CreatureUtils.isEnemy(en)) || en.getLocation().distance(loc) >= 1.5 || en.equals(player)) { | ||
for (Entity en : loc.getChunk().getEntities()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entity, livingEntity
} | ||
|
||
private void applyMagicAttack(Player player) { | ||
private void applyMagicAttack(User user) { | ||
XParticle.drawLine(user.getPlayer(), 40, 1, ParticleDisplay.of(XParticle.getParticle("FLAME"))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.8 issue
//wand damage: 30/32/35 scaling % of entity's max health, we use direct health set to override armors etc. | ||
entity.damage(0, user.getPlayer()); | ||
double maxHealthPercent = getWandPercentageDamage(arena); | ||
entity.setHealth(Math.max(0, entity.getHealth() - (entity.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue() / 100.0) * maxHealthPercent)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use VersionUtil getMaxHealth Attributes will cause issues on direct call for legacy versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notice we need to check if that versioncheck will already be enough for 1.8
pom.xml
Outdated
<changelogFile>${project.basedir}/CHANGELOG.md</changelogFile> | ||
</configuration> | ||
</plugin> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let betty inside
getMessageManager().registerMessage("KIT_CONTENT_MEDIC_GAME_ITEM_HOMECOMING_RESPAWNED_BY_TITLE", new Message("Kit.Content.Medic.Game-Item.Homecoming.Respawned-By-Title", "")); | ||
getMessageManager().registerMessage("KIT_CONTENT_MEDIC_GAME_ITEM_HOMECOMING_RESPAWNED_BY_SUBTITLE", new Message("Kit.Content.Medic.Game-Item.Homecoming.Respawned-By-Subtitle", "")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still two titles?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its possible to use the newly added TitleBuilder from MinigamesBox which let you combine both in one.
e.g.
new TitleBuilder("TITLE").asKey().arena(arena).player(player).sendPlayer();
Title: "20,30,20;%arena_name%;%arena_players_size%/%arena_max_players%"
src/main/java/plugily/projects/villagedefense/kits/premium/TornadoKit.java
Outdated
Show resolved
Hide resolved
todo: abilities registry |
todo: let each kit register messages for game on their own, not in main class |
todo: percentage damage utils to reduce 3 lines into 1 line utility, it will definitely be used across multiple kits |
will finish it someday definitely |
hopefully next week xD ;) |
todo: Revamp final defense (entity upgrade for golem), it's too weak, reference here: Village_Defense/src/main/java/plugily/projects/villagedefense/events/EntityUpgradeListener.java Line 118 in ae92973
Slow 1 for every alive zombie for 0.25 seconds Damage of 0.25 heart for every zombie alive It is definitely too weak. |
# Conflicts: # src/main/java/plugily/projects/villagedefense/Main.java
Killers will now split orbs for all people that assisted in the kill, any people that buffed the killer within 10 seconds or debuffed or attacked enemy that was killed
# Conflicts: # build.gradle.kts
On wave refresh players are now partially healed (25% max health) and villagers are healed a bit as well
Quality Gate passedIssues Measures |
This pull request includes updates for Wizard, Medic and Tornado (not fully completed) kits as well as Entity Upgrades system (mostly messages).
Pardon any other changes such as old copyright updates and others.
Please review each file changed carefully.