Skip to content
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

Bug fix and better zh_cn translation #17

Open
wants to merge 13 commits into
base: 1.12
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
branches: [ '1.12' ]
pull_request:
branches: [ '1.12' ]
workflow_dispatch:

jobs:
build:
Expand All @@ -20,10 +21,15 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: ./gradlew build
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build

- name: Upload build
uses: actions/upload-artifact@v3
with:
Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ repositories {
name = "JEI"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
name = 'Modrinth'
url = "https://api.modrinth.com/maven"
}
}

minecraft {
Expand All @@ -39,7 +43,7 @@ dependencies {
deobfProvided "mezz.jei:jei_${mc_version}:${jei_version}:api"
runtime "mezz.jei:jei_${mc_version}:${jei_version}"

compile fileTree(dir:"libs",includes:['*jar'])
compile 'maven.modrinth:kekkai:1.2.1'
}

processResources {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
goa_version=3.0.0
goa_version=3.0.1
mc_version=1.12.2
forge_version=14.23.5.2768
jei_version=4.11.0.206
dancore_version=0.8.0
dancore_version=0.8.0
Binary file removed libs/danmakucore-1.12.2-0.8.0-SNAPSHOT-shaded.jar
Binary file not shown.
Binary file removed libs/mirror-1.12.2-0.5.0-shaded.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class ItemMiracleMallet extends ItemBase {
public ItemMiracleMallet() {
super(LibName.MIRACLE_MALLET);
setNoRepair();
setMaxStackSize(1);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;

public class ItemMomijisScimitarSword extends ItemBaseSword {
public class ItemMomijisScimitarSword extends ItemBaseSword {

public ItemMomijisScimitarSword(ToolMaterial material) {
super(material, LibName.MOMIJI_SCIMITAR_SWORD);
}
public ItemMomijisScimitarSword(ToolMaterial material) {
super(material, LibName.MOMIJI_SCIMITAR_SWORD);
}

@Override
public Multimap<String, AttributeModifier> getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack) {
Multimap<String, AttributeModifier> modifiers = super.getAttributeModifiers(slot, stack);
MiscHelper.multiplyItemModifier(modifiers, SharedMonsterAttributes.ATTACK_SPEED, ATTACK_SPEED_MODIFIER, 4);
return modifiers;
}
@Override
public Multimap<String, AttributeModifier> getAttributeModifiers(EntityEquipmentSlot slot, ItemStack stack) {
Multimap<String, AttributeModifier> modifiers = super.getAttributeModifiers(slot, stack);
MiscHelper.multiplyItemModifier(modifiers, SharedMonsterAttributes.ATTACK_SPEED, ATTACK_SPEED_MODIFIER, -0.7);
return modifiers;
}

@Override
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) {
return repair.getItem() == Items.IRON_INGOT;
}
@Override
public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) {
return repair.getItem() == Items.IRON_INGOT;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,20 @@ public static class Sun extends SubEntityDefault {

@Override
public DanmakuUpdate subEntityTick(DanmakuState danmaku) {
return super.subEntityTick(danmaku).addCallbackIf(!danmaku.world().isRemote, () -> {
AxisAlignedBB bb = new AxisAlignedBB(danmaku.pos().toBlockPos()).grow(danmaku.shot().sizeX(), danmaku.shot().sizeY(), danmaku.shot().sizeZ());
danmaku.world().getEntitiesWithinAABB(EntityLivingBase.class, bb).forEach(e -> e.setFire(5));
});
return super.subEntityTick(danmaku)
.addCallbackIf(!danmaku.world().isRemote, () -> {
AxisAlignedBB bb = new AxisAlignedBB(danmaku.pos().toBlockPos()).grow(danmaku.shot().sizeX(),
danmaku.shot().sizeY(), danmaku.shot().sizeZ());
danmaku.world().getEntitiesWithinAABB(EntityLivingBase.class, bb).forEach(e -> {
if (!danmaku.user().isEmpty()) {
if (e != danmaku.user().get()) {
e.setFire(5);
}
} else {
e.setFire(5);
}
});
});
}

@Override
Expand Down
425 changes: 211 additions & 214 deletions src/main/resources/assets/grimoireofalice/lang/zh_CN.lang

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading