-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa14a91
commit 542981e
Showing
10 changed files
with
40 additions
and
173 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...a/me/neovitalism/neomixins/NeoMixins.java → .../advancedspecpatch/AdvancedSpecPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
package me.neovitalism.neomixins; | ||
package me.neovitalism.advancedspecpatch; | ||
|
||
import net.minecraftforge.fml.common.Mod; | ||
import org.apache.logging.log4j.Level; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
@Mod("neomixins") | ||
public class NeoMixins { | ||
@Mod("advancedspecpatch") | ||
public class AdvancedSpecPatch { | ||
private static final Logger LOGGER = LogManager.getLogger(); | ||
|
||
public NeoMixins() { | ||
public AdvancedSpecPatch() { | ||
LOGGER.log(Level.INFO, "Loaded!"); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...116/src/main/java/me/neovitalism/advancedspecpatch/mixins/UltraBeastRequirementMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package me.neovitalism.advancedspecpatch.mixins; | ||
|
||
import com.pixelmonmod.api.pokemon.requirement.AbstractBooleanPokemonRequirement; | ||
import com.pixelmonmod.api.pokemon.requirement.impl.UltraBeastRequirement; | ||
import com.pixelmonmod.pixelmon.api.pokemon.Pokemon; | ||
import com.pixelmonmod.pixelmon.api.registries.PixelmonSpecies; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Overwrite; | ||
|
||
import java.util.Set; | ||
|
||
@Mixin(value = UltraBeastRequirement.class, remap = false) | ||
public abstract class UltraBeastRequirementMixin extends AbstractBooleanPokemonRequirement { | ||
public UltraBeastRequirementMixin(Set<String> keys) { | ||
super(keys); | ||
} | ||
|
||
/** | ||
* @author Neovitalism | ||
* @reason Make it work (and optimize it a bit)! | ||
*/ | ||
@Overwrite | ||
public void applyData(Pokemon pixelmon) { | ||
if (this.value && !pixelmon.isUltraBeast()) { | ||
pixelmon.setSpecies(PixelmonSpecies.getRandomUltraBeast(), false); | ||
} else if (!this.value && pixelmon.isUltraBeast()) { | ||
pixelmon.setSpecies(PixelmonSpecies.getRandomSpecies(false, false, true), false); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
forge120/src/main/java/me/neovitalism/neomixins/NeoMixins.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mod_version = 1.0.0 | ||
mod_id = neomixins | ||
mod_name = NeoMixins | ||
mod_description = Mixins for use with Pixelmon | ||
github_page = https://github.com/Neovitalism/NeoMixins | ||
mod_id = advancedspecpatch | ||
mod_name = AdvancedSpecPatch | ||
mod_description = Patches specific specs. | ||
github_page = https://github.com/Neovitalism/NeoMixins/tree/advanced-spec-patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
rootProject.name = 'NeoMixins' | ||
rootProject.name = 'AdvancedSpecPatch' | ||
include 'forge116' | ||
include 'forge120' | ||
|