This repository was archived by the owner on Dec 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
src/main/java/jossc/squidgame/phase Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 8484 <dependency >
8585 <groupId >com.github.Josscoder</groupId >
8686 <artifactId >GameAPI</artifactId >
87- <version >7be3b36317 </version >
87+ <version >c974b23403 </version >
8888 </dependency >
8989
9090 </dependencies >
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public String getName() {
5454
5555 @ Override
5656 public String getInstruction () {
57- return "You will have to cut the figure to perfection before the game ends, remember that if you miss a block, your life will decrease " ;
57+ return "Break 10 blocks with the Burning Needle to win! " ;
5858 }
5959
6060 @ Override
@@ -84,21 +84,22 @@ public List<String> getScoreboardLines(User user) {
8484
8585 int blocksBroken = user .getLocalStorage ().getInteger ("blocks_broken" );
8686
87- lines .add ("\uE19D Blocks Broken " + blocksBroken );
87+ lines .add ("\uE19D Blocks Broken " + blocksBroken + "/10" );
8888
8989 return lines ;
9090 }
9191
9292 @ Override
9393 public void onGameStart () {
94- giveBurningNeedle ();
94+ giveAttributes ();
9595 canReciveDamage = true ;
9696 }
9797
98- private void giveBurningNeedle () {
98+ private void giveAttributes () {
9999 getNeutralPlayers ()
100100 .forEach (
101101 player -> {
102+ player .setImmobile ();
102103 player .getInventory ().setItem (0 , burningNeedle .build ());
103104 player .getInventory ().setItem (9 , new ItemArrow ());
104105
@@ -171,7 +172,7 @@ public void onHit(ProjectileHitEvent event) {
171172
172173 user .sendMessage ("&l&a» +1 block broken" );
173174
174- if (storage .getInteger ("blocks_broken" ) >= 5 ) {
175+ if (storage .getInteger ("blocks_broken" ) >= 10 ) {
175176 win (player );
176177 }
177178 }
@@ -185,7 +186,7 @@ public void onHit(ProjectileHitEvent event) {
185186 }
186187
187188 private void applyDamage (Player player ) {
188- player .attack (2f );
189+ player .attack (4.0f );
189190 }
190191
191192 @ Override
You can’t perform that action at this time.
0 commit comments