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 1555 additions and 3133 deletions

No files matched your search

-1
View File
@@ -8,7 +8,6 @@
/out/*
/asm/*
/bin/*
/libs/*
/download/*
/.settings/*
/eclipse/*
+2 -2
View File
@@ -6,9 +6,9 @@ Electro-Magic Tools is a Minecraft mod which integrates Thaumcraft 4 with Indust
#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
+3 -37
View File
@@ -20,23 +20,10 @@ configFile.withReader {
project.ext.config = new ConfigSlurper().parse prop
}
def build_number = 'CUSTOM'
if (System.getenv('BUILD_NUMBER') != null)
build_number = System.getenv('BUILD_NUMBER')
version = config.mc_version + "-" + config.mod_version + "-${build_number}"
version = config.mod_version + "[" + config.mc_version + "]"
group= config.package_group
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 {
version = config.mc_version + "-" + config.forge_version + "-" + config.mc_version
runDir = "run"
@@ -51,25 +38,11 @@ processResources {
from(sourceSets.main.resources.srcDirs) {
include '**/*.info'
include '**/*.properties'
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.info'
exclude '**/*.properties'
exclude '**/*.db'
expand 'version': config.mod_version
}
}
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 "ic2/**"
exclude "thaumcraft/**"
@@ -81,19 +54,13 @@ task sourceJar(type: Jar) {
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
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
tasks.build.dependsOn sourceJar, javadocJar, deobfJar
tasks.build.dependsOn sourceJar, deobfJar
tasks.withType(JavaCompile) { task ->
task.options.encoding = 'UTF-8'
@@ -105,7 +72,6 @@ publishing {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar
//artifact javadocJar
artifact deobfJar
}
}
+1 -1
View File
@@ -3,5 +3,5 @@
package_group=com.tombenpotter.emt
mc_version=1.7.10
forge_version=10.13.4.1481
mod_version=1.2.0B1
mod_version=1.2.3
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
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
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;
import java.util.EnumSet;
import java.util.Set;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
@@ -36,6 +39,15 @@ public enum Direction {
*/
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) {
return directions[(side + 2) % 6];
}
@@ -83,7 +95,7 @@ public enum Direction {
/**
* Get the inverse of this direction (XN -> XP, XP -> XN, etc.)
*
*
* @return Inverse direction
*/
public Direction getInverse() {
@@ -92,7 +104,7 @@ public enum Direction {
/**
* Convert this direction to a Minecraft side value.
*
*
* @return Minecraft side value
*/
public int toSideValue() {
@@ -112,6 +124,12 @@ public enum Direction {
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 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
*/
public float dropGainChance() {
float base = 1F;
for (int i = 0; i < tier(); i++) {base*=0.95;}
return base;
public float dropGainChance() { // TODO: change to double
return (float) Math.pow(0.95, tier());
}
/**
@@ -398,7 +396,7 @@ public abstract class CropCard {
*/
public boolean isWeed(ICropTile crop) {
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