-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
Make barbarians place ladders and break walls #2856
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3485fd4
Make barbarians place ladders and break walls
Raycoms cdbb35b
destroy block on top by chance
Raycoms 4d317ed
codacy
Raycoms cf255d8
improved wall scaling
Raycoms 41f0bde
Make them build bridges as well
Raycoms ed4a5c2
Merge branch 'version/1.12' into feature/nasty-barbs
Raycoms 2dd3c6f
Remove not needed reflection
Raycoms 8fff2dc
add config setting to barbarian breaking
Raycoms 8b5a6ce
Merge remote-tracking branch 'origin/version/1.12' into feature/nasty…
Raycoms 92f1043
Merge remote-tracking branch 'origin/version/1.12' into feature/nasty…
Raycoms 48ef14a
make them work in the water as well
Raycoms b118f0f
remove additional imports
Raycoms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
src/api/java/com/minecolonies/api/util/constant/BarbarianConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.minecolonies.api.util.constant; | ||
|
||
import net.minecraft.potion.Potion; | ||
|
||
/** | ||
* Barbarian constants class. | ||
*/ | ||
public final class BarbarianConstants | ||
{ | ||
/** | ||
* The amount of EXP to drop on entity death. | ||
*/ | ||
public static final int BARBARIAN_EXP_DROP = 1; | ||
|
||
/** | ||
* The range for the barb to move away. | ||
*/ | ||
public static final int MOVE_AWAY_RANGE = 4; | ||
|
||
public static final int BARBARIAN_HORDE_DIFFICULTY_FIVE = 5; | ||
|
||
/** | ||
* Values used to choose whether or not to play sound | ||
*/ | ||
public static final int OUT_OF_ONE_HUNDRED = 100; | ||
|
||
public static final int ONE = 1; | ||
|
||
/** | ||
* Values used for sword effect. | ||
*/ | ||
public static final Potion SPEED_EFFECT = Potion.getPotionById(1); | ||
public static final int TIME_TO_COUNTDOWN = 240; | ||
public static final int COUNTDOWN_SECOND_MULTIPLIER = 4; | ||
public static final int SPEED_EFFECT_DISTANCE = 7; | ||
public static final int SPEED_EFFECT_DURATION = 240; | ||
public static final int SPEED_EFFECT_MULTIPLIER = 2; | ||
|
||
/** | ||
* Amount of ticks to despawn the barbarian. | ||
*/ | ||
public static final int TICKS_TO_DESPAWN = Constants.TICKS_SECOND * Constants.SECONDS_A_MINUTE * 5; | ||
|
||
/** | ||
* Randomly execute it every this ticks. | ||
*/ | ||
public static final int EVERY_X_TICKS = 20; | ||
|
||
/** | ||
* Private constructor to hide implicit one. | ||
*/ | ||
private BarbarianConstants() | ||
{ | ||
/* | ||
* Intentionally left empty. | ||
*/ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why is this done here instead of using an AT?