Skip to content

Commit c03bdb7

Browse files
committed
Fixed #3
1 parent a025677 commit c03bdb7

5 files changed

Lines changed: 37 additions & 5 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ build/
4747
out/
4848
*.iml
4949
*.ipr
50-
*.iws
50+
*.iws
51+
gradle.properties

build.gradle

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@ buildscript {
99
name = "sonatype"
1010
url = "https://oss.sonatype.org/content/repositories/snapshots/"
1111
}
12+
maven {
13+
name = "gradle"
14+
url = "https://plugins.gradle.org/m2/"
15+
}
1216
}
1317
dependencies {
1418
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
19+
classpath 'co.riiid:gradle-github-plugin:0.4.2'
20+
classpath 'gradle.plugin.com.matthewprenger:CurseGradle:1.0.11'
1521
}
1622
}
1723

18-
apply plugin: 'net.minecraftforge.gradle.forge'
24+
apply plugin: "net.minecraftforge.gradle.forge"
25+
apply plugin: 'co.riiid.gradle'
26+
apply plugin: "com.matthewprenger.cursegradle"
1927

2028
sourceCompatibility = targetCompatibility = "1.8" // Need this here so eclipse task generates correctly.
2129
compileJava {
@@ -54,6 +62,26 @@ dependencies {
5462

5563
}
5664

65+
github {
66+
owner = 'InfinityStudio'
67+
repo = 'GokiStats'
68+
token = githubToken
69+
tagName = version
70+
targetCommitish = 'master'
71+
name = 'gokiStats ' + version
72+
assets = [
73+
'build/libs'
74+
]
75+
}
76+
77+
curseforge {
78+
apiKey = curseForgeApiKey // This should really be in a gradle.properties file
79+
project {
80+
id = '298141'
81+
releaseType = 'beta'
82+
}
83+
}
84+
5785
processResources
5886
{
5987
// this will ensure that this task is redone when the versions change.

gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Sets default memory used for gradle commands. Can be overridden by user or command line properties.
22
# This is required to provide enough memory for the Minecraft decompilation process.
3-
org.gradle.jvmargs=-Xmx3G
3+
org.gradle.jvmargs=-Xmx3G
4+
5+
githubToken=1b0dec1363c9abfe33d546bf863acc4577e387b8
6+
curseForgeApiKey=70d5f082-c903-4ee6-a4b1-cbb73f4f6881

src/main/resources/assets/gokistats/lang/en_us.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ grpg_Treasure_Finder.des1=Chance to find more rare additional items when harvest
4444
grpg_Furnace_Finesse.des=Smelt %1$f ticks faster %2$f%% of the time while using a furnace.
4545
grpg_Steady_Guard.des=%f%% less knockback when blocking.
4646
grpg_Stealth.des=Move %1$f%% faster and reap %2$f%%more often (%3$f%%) when sneaking.;
47-
grpg_Mining_Magician.des=
47+
grpg_Mining_Magician.des=Chance to find additional materials when harvesting ores.
4848
grpg_Roll.des=%f%% chance to avoid damage and counterattack enemy.
4949

5050
grpg_Roll.message=*Avoided*

src/main/resources/assets/gokistats/lang/zh_cn.lang

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ grpg_Treasure_Finder.des1=增加开采时获得额外掉落稀有品的概率
4545
grpg_Furnace_Finesse.des=增加熔炼速度%1$f刻,节约%2$f%%的时间;
4646
grpg_Steady_Guard.des=减缓%f%%的击退
4747
grpg_Stealth.des=增加潜行时%1$f%%的移动速度和%2$f%%的开采速度(%3$f%%);
48-
grpg_Mining_Magician.des=挖掘魔术
48+
grpg_Mining_Magician.des=增加开采矿物时获得额外材料的概率
4949
grpg_Health.des=增加玩家%f的生命值
5050
grpg_Roll.des=有%f%%的几率闪避伤害并反击敌人
5151

0 commit comments

Comments
 (0)