Compare commits

...
10 Commits
Author SHA1 Message Date
Anton 48176bc708 Update Gradle wrapper 2015-11-27 18:10:26 +03:00
fewizz 5e20f177f1 fixes 2015-11-12 20:05:55 +03:00
fewizz 25e64459bb some changes 2015-11-09 21:57:44 +03:00
fewizz 7d8c08bf72 Update 2015-10-04 21:43:02 +03:00
fewizz a402869c01 Added background, Added aspects to few IC2 blocks, Cleanup research code. 2015-10-04 21:37:48 +03:00
fewizz 2fd7805c10 Hotfix 2015-10-04 17:24:26 +03:00
fewizz e9e8ef2455 Cleanup, fixed sounds, curse. 2015-10-04 16:41:52 +03:00
fewizz 9868d18c75 Cleanup (again -_-) 2015-10-03 21:26:45 +03:00
fewizz 9e39c63627 Cleanup, libs. 2015-10-02 14:19:04 +03:00
fewizz 277677837e Cleanup, sounds for Chainsaws. 2015-10-01 21:07:47 +03:00
408 changed files with 1530 additions and 3108 deletions

No files matched your search

-1
View File
@@ -8,7 +8,6 @@
/out/* /out/*
/asm/* /asm/*
/bin/* /bin/*
/libs/*
/download/* /download/*
/.settings/* /.settings/*
/eclipse/* /eclipse/*
+2 -2
View File
@@ -6,9 +6,9 @@ Electro-Magic Tools is a Minecraft mod which integrates Thaumcraft 4 with Indust
#Downloads #Downloads
Github: [CurseForge downloads](http://minecraft.curseforge.com/projects/electro-magic-tools)
https://github.com/fewizz/Electro-Magic-Tools/releases [Github Releases](https://github.com/fewizz/Electro-Magic-Tools/releases)
#Issues #Issues
+3 -37
View File
@@ -20,23 +20,10 @@ configFile.withReader {
project.ext.config = new ConfigSlurper().parse prop project.ext.config = new ConfigSlurper().parse prop
} }
def build_number = 'CUSTOM' version = config.mod_version + "[" + config.mc_version + "]"
if (System.getenv('BUILD_NUMBER') != null)
build_number = System.getenv('BUILD_NUMBER')
version = config.mc_version + "-" + config.mod_version + "-${build_number}"
group= config.package_group group= config.package_group
archivesBaseName = config.mod_name archivesBaseName = config.mod_name
import org.ajoberstar.grgit.Grgit
def gitHash = 'unknown'
if (new File(projectDir, '.git').exists()) {
def repo = Grgit.open(project.file('.'))
gitHash = repo.log().find().abbreviatedId
}
minecraft { minecraft {
version = config.mc_version + "-" + config.forge_version + "-" + config.mc_version version = config.mc_version + "-" + config.forge_version + "-" + config.mc_version
runDir = "run" runDir = "run"
@@ -51,25 +38,11 @@ processResources {
from(sourceSets.main.resources.srcDirs) { from(sourceSets.main.resources.srcDirs) {
include '**/*.info' include '**/*.info'
include '**/*.properties' expand 'version': config.mod_version
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.info'
exclude '**/*.properties'
exclude '**/*.db'
} }
} }
jar { jar {
manifest.mainAttributes(
"Built-By": System.getProperty('user.name'),
"Created-By": "${System.getProperty('java.vm.version')} + (${System.getProperty('java.vm.vendor')})",
"Implementation-Title": project.name,
"Implementation-Version": project.version,
"Git-Hash": gitHash
)
exclude "baubles/**" exclude "baubles/**"
exclude "ic2/**" exclude "ic2/**"
exclude "thaumcraft/**" exclude "thaumcraft/**"
@@ -81,19 +54,13 @@ task sourceJar(type: Jar) {
classifier = 'sources' classifier = 'sources'
} }
// add a javadoc jar
task javadocJar(type: Jar) {
from javadoc.destinationDir
classifier = 'javadoc'
}
// because the normal output has been made to be obfuscated // because the normal output has been made to be obfuscated
task deobfJar(type: Jar) { task deobfJar(type: Jar) {
from sourceSets.main.output from sourceSets.main.output
classifier = 'deobf' classifier = 'deobf'
} }
tasks.build.dependsOn sourceJar, javadocJar, deobfJar tasks.build.dependsOn sourceJar, deobfJar
tasks.withType(JavaCompile) { task -> tasks.withType(JavaCompile) { task ->
task.options.encoding = 'UTF-8' task.options.encoding = 'UTF-8'
@@ -105,7 +72,6 @@ publishing {
mavenJava(MavenPublication) { mavenJava(MavenPublication) {
from components.java from components.java
artifact sourceJar artifact sourceJar
//artifact javadocJar
artifact deobfJar artifact deobfJar
} }
} }
+1 -1
View File
@@ -3,5 +3,5 @@
package_group=com.tombenpotter.emt package_group=com.tombenpotter.emt
mc_version=1.7.10 mc_version=1.7.10
forge_version=10.13.4.1481 forge_version=10.13.4.1481
mod_version=1.2.0B1 mod_version=1.2.3
mod_name=ElectroMagicTools mod_name=ElectroMagicTools
Binary file not shown.
+2 -2
View File
@@ -1,6 +1,6 @@
#Fri Sep 26 11:20:52 CDT 2014 #Fri Nov 27 18:08:08 MSK 2015
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
@@ -1,5 +1,8 @@
package ic2.api; package ic2.api;
import java.util.EnumSet;
import java.util.Set;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World; import net.minecraft.world.World;
@@ -36,6 +39,15 @@ public enum Direction {
*/ */
ZP; ZP;
private Direction() {
int side = ordinal() / 2;
int sign = getSign();
xOffset = side == 0 ? sign : 0;
yOffset = side == 1 ? sign : 0;
zOffset = side == 2 ? sign : 0;
}
public static Direction fromSideValue(int side) { public static Direction fromSideValue(int side) {
return directions[(side + 2) % 6]; return directions[(side + 2) % 6];
} }
@@ -112,6 +124,12 @@ public enum Direction {
return ForgeDirection.getOrientation(toSideValue()); return ForgeDirection.getOrientation(toSideValue());
} }
public final int xOffset;
public final int yOffset;
public final int zOffset;
public static final Direction[] directions = Direction.values(); public static final Direction[] directions = Direction.values();
public static final Set<Direction> noDirections = EnumSet.noneOf(Direction.class);
public static final Set<Direction> allDirections = EnumSet.allOf(Direction.class);
} }
Binary file not shown.
@@ -263,10 +263,8 @@ public abstract class CropCard {
* *
* @return Chance to drop the gains * @return Chance to drop the gains
*/ */
public float dropGainChance() { public float dropGainChance() { // TODO: change to double
float base = 1F; return (float) Math.pow(0.95, tier());
for (int i = 0; i < tier(); i++) {base*=0.95;}
return base;
} }
/** /**
@@ -398,7 +396,7 @@ public abstract class CropCard {
*/ */
public boolean isWeed(ICropTile crop) { public boolean isWeed(ICropTile crop) {
return crop.getSize() >= 2 && return crop.getSize() >= 2 &&
(crop == Crops.weed || crop.getGrowth() >= 24); (crop.getCrop() == Crops.weed || crop.getGrowth() >= 24);
} }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 408 files, more files were not shown because too many files have changed in this diff. Show more