-
-
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
d7ea0a9
commit 7d1a190
Showing
9 changed files
with
26 additions
and
171 deletions.
There are no files selected for viewing
8 changes: 4 additions & 4 deletions
8
...a/me/neovitalism/neomixins/NeoMixins.java → ...vitalism/levelcappatch/LevelCapPatch.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.levelcappatch; | ||
|
||
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("levelcappatch") | ||
public class LevelCapPatch { | ||
private static final Logger LOGGER = LogManager.getLogger(); | ||
|
||
public NeoMixins() { | ||
public LevelCapPatch() { | ||
LOGGER.log(Level.INFO, "Loaded!"); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
forge116/src/main/java/me/neovitalism/levelcappatch/mixins/PixelmonWrapperMixin.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,18 @@ | ||
package me.neovitalism.levelcappatch.mixins; | ||
|
||
import com.pixelmonmod.pixelmon.battles.controller.participants.PixelmonWrapper; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
@Mixin(value=PixelmonWrapper.class, remap = false) | ||
public abstract class PixelmonWrapperMixin { | ||
@Shadow public abstract void recalculateMaxHP(); | ||
|
||
@Inject(method={"setTempLevel"}, at={@At(value="RETURN")}) | ||
public void levelCapPatch$setTempLevel(int level, CallbackInfo ci) { | ||
this.recalculateMaxHP(); | ||
} | ||
} |
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 | ||
mod_id = levelcappatch | ||
mod_name = LevelCapPatch | ||
mod_description = Fixes Level Cap not recalculating Pokémon's health. | ||
github_page = https://github.com/Neovitalism/NeoMixins |