Skip to content

Commit

Permalink
Merge branch 'version/main' into fix/teams_assignment_behaviour
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main/java/com/minecolonies/core/entity/citizen/EntityCitizen.java
  • Loading branch information
Thodor12 committed Nov 1, 2024
2 parents 67dea18 + c11e5d6 commit 115cc12
Show file tree
Hide file tree
Showing 636 changed files with 1,259 additions and 699 deletions.
9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ crowdinId=minecolonies
usesDatagen=true
usesOptifine=false
useDefaultTestSystem=false
runtimeSourceSets=api;main
librarySourceSets=api;main;datagen;
projectHasApi=false
runtimeSourceSets=main
librarySourceSets=main;datagen;
primaryJarClassifier=

extendDefaultSourceSetConfiguration=true
mainExcludedResources=assets/minecolonies/lang/manual_en_us.json;assets/minecolonies/lang/default.json;assets/minecolonies/lang/quests.json
Expand All @@ -91,7 +93,6 @@ usesSonarQube=true

usesCrowdInTranslationManagement=true
crowdInDownloadDirectory=src/main/resources/assets/minecolonies/lang
usesCrowdInBuildingWithFilteredBranches=true
usesCrowdInUploadWithFilteredBranches=true
usesCrowdInUploadWithFilteredBranchesSpec=(version|release)\/.+

additionalModsInDataGen=structurize;domum_ornamentum
9 changes: 0 additions & 9 deletions gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,17 @@ repositories {
}

dependencies {
apiCompileOnly (fg.deobf("com.ldtteam:domum_ornamentum:${project.domumOrnamentumVersion}:universal")){
transitive = false
}
compileOnly (fg.deobf("com.ldtteam:domum_ornamentum:${project.domumOrnamentumVersion}:universal")){
transitive = false
}
runtimeOnly (fg.deobf("com.ldtteam:domum_ornamentum:${project.domumOrnamentumVersion}:universal")){
transitive = false
}

apiImplementation (fg.deobf("com.ldtteam:blockui:${project.blockUI_version}")){
transitive = false
}
implementation (fg.deobf("com.ldtteam:blockui:${project.blockUI_version}")){
transitive = false
}

apiImplementation (fg.deobf("com.ldtteam:structurize:${project.structurize_version}")){
transitive = false
}
implementation (fg.deobf("com.ldtteam:structurize:${project.structurize_version}")){
transitive = false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@
"com.minecolonies.research.combat.captainoftheguard.name": "Captain of the Guard",
"com.minecolonies.research.combat.captaintraining.name": "Captain Training",
"com.minecolonies.research.combat.cleave.name": "Cleave",
"com.minecolonies.research.combat.coffee.name": "Coffee",
"com.minecolonies.research.combat.coffee.subtitle": "Keeps guards awake",
"com.minecolonies.research.combat.deadlyaim.name": "Deadly Aim",
"com.minecolonies.research.combat.deadlyaim.subtitle": "Just don't aim at me!",
"com.minecolonies.research.combat.diamondskin.name": "Diamond Skin",
Expand Down Expand Up @@ -228,6 +230,7 @@
"com.minecolonies.research.effects.fleeingspeedaddition.description": "Fleeing Guards Gain Swiftness %2$s",
"com.minecolonies.research.effects.gravedecaybonus.description": "Citizen Graves Take %s More Minutes to Decay",
"com.minecolonies.research.effects.growthmultiplier.description": "Child Growth Rate +%3$s%%",
"com.minecolonies.research.effects.guardcrit.description": "Guards have a chance to score critical hits",
"com.minecolonies.research.effects.happinessmultiplier.description": "Citizen Happiness +%3$s%%",
"com.minecolonies.research.effects.healingsaturationlimitaddition.description": "Healing Saturation Min %s",
"com.minecolonies.research.effects.healthaddition.description": "Citizen HP +%s",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"branch": "minecolonies:combat",
"effects": [
{
"minecolonies:effects/sleeplessmultiplier": 1
"minecolonies:effects/guardcrit": 1
}
],
"exclusiveChildResearch": true,
"icon": "minecraft:lime_bed",
"icon": "minecraft:iron_sword",
"requirements": [
{
"building": "guardtower",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"branch": "minecolonies:combat",
"effects": [
{
"minecolonies:effects/sleeplessmultiplier": 1
}
],
"icon": "minecraft:lime_bed",
"parentResearch": "minecolonies:combat/tactictraining",
"requirements": [
{
"type": "minecolonies:item_list",
"item": {
"items": [
"minecraft:golden_carrot"
]
},
"quantity": 4
}
],
"researchLevel": 2,
"subtitle": "com.minecolonies.research.combat.coffee.subtitle"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"effect": true
"effect": true,
"levels": [
5.0
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"effect": true,
"levels": [
0.2,
0.3,
0.4,
0.5
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"#forge:is_wet/overworld",
"minecraft:bamboo_jungle",
"minecraft:beach",
"minecraft:river",
"minecraft:warm_ocean",
"minecraft:dripstone_caves",
"minecraft:jungle",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,27 @@ public BlockEntity newBlockEntity(@NotNull final BlockPos blockPos, @NotNull fin
@Override
public void setPlacedBy(final Level worldIn, final @NotNull BlockPos pos, @NotNull BlockState state, @Nullable LivingEntity placer, @NotNull ItemStack stack)
{
if (worldIn.isClientSide) return;
if (worldIn.isClientSide)
{
return;
}

BlockEntity te = worldIn.getBlockEntity(pos);
if (te instanceof TileEntityColonyFlag && ((TileEntityColonyFlag) te).colonyId == -1 )
if (te instanceof TileEntityColonyFlag flagTileEntity)
{
IColony colony = IColonyManager.getInstance().getIColony(worldIn, pos);

// Allow the player to place their own beyond the colony
if (colony == null && placer instanceof Player)
{
colony = IColonyManager.getInstance().getIColonyByOwner(worldIn, (Player) placer);
}

if (colony != null)
((TileEntityColonyFlag) te).colonyId = colony.getID();
{
flagTileEntity.colonyId = colony.getID();
}
}

}

@NotNull
Expand Down
Loading

0 comments on commit 115cc12

Please sign in to comment.