-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big update read commit for all information
- Updated for BaseMod and MTS 3.0.0 - Package restructure (Will need to reimport) - Changed when monsters choose their target. - Fix intent tips to show what the monster is doing as well as their target for their attack. - Fixed minions being effected by Blights (I hope, hard for me to test) - Fixed minions triggering relics on death.
- Loading branch information
1 parent
bfac813
commit 2fb94f0
Showing
22 changed files
with
598 additions
and
269 deletions.
There are no files selected for viewing
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 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
2 changes: 1 addition & 1 deletion
2
src/main/java/actions/ChooseAction.java → ...friendlyminions/actions/ChooseAction.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
2 changes: 1 addition & 1 deletion
2
src/main/java/actions/ChooseActionInfo.java → ...ndlyminions/actions/ChooseActionInfo.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,4 +1,4 @@ | ||
package actions; | ||
package kobting.friendlyminions.actions; | ||
|
||
public class ChooseActionInfo { | ||
|
||
|
6 changes: 1 addition & 5 deletions
6
src/main/java/cards/CustomSummonCard.java → ...iendlyminions/cards/CustomSummonCard.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
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 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
2 changes: 1 addition & 1 deletion
2
...java/characters/CustomCharSelectInfo.java → ...ions/characters/CustomCharSelectInfo.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
10 changes: 5 additions & 5 deletions
10
src/main/java/enums/MonsterIntentEnum.java → ...endlyminions/enums/MonsterIntentEnum.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
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
2 changes: 1 addition & 1 deletion
2
...main/java/helpers/MinionConfigHelper.java → ...lyminions/helpers/MinionConfigHelper.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,4 +1,4 @@ | ||
package helpers; | ||
package kobting.friendlyminions.helpers; | ||
|
||
public class MinionConfigHelper { | ||
|
||
|
48 changes: 48 additions & 0 deletions
48
src/main/java/kobting/friendlyminions/helpers/MonsterHelper.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,48 @@ | ||
package kobting.friendlyminions.helpers; | ||
|
||
import com.megacrit.cardcrawl.monsters.AbstractMonster; | ||
import kobting.friendlyminions.enums.MonsterIntentEnum; | ||
import kobting.friendlyminions.monsters.AbstractFriendlyMonster; | ||
import kobting.friendlyminions.patches.MonsterAddFieldsPatch; | ||
|
||
public class MonsterHelper { | ||
|
||
public static void setTarget(AbstractMonster monster, AbstractFriendlyMonster target) { | ||
MonsterAddFieldsPatch.f_target.set(monster, target); | ||
} | ||
|
||
public static AbstractFriendlyMonster getTarget(AbstractMonster monster) { | ||
return MonsterAddFieldsPatch.f_target.get(monster); | ||
} | ||
|
||
|
||
/** | ||
* Use to switch a monsters current target to someone else. Passing in null will cause | ||
* the target to be the player. | ||
* @param monster | ||
* @param newTarget | ||
*/ | ||
public static void switchTarget(AbstractMonster monster, AbstractFriendlyMonster newTarget) { | ||
|
||
AbstractMonster.Intent intent = monster.intent; | ||
|
||
if(newTarget == null) { | ||
if(intent == MonsterIntentEnum.ATTACK_MINION) { | ||
monster.intent = AbstractMonster.Intent.ATTACK; | ||
} | ||
else if(intent == MonsterIntentEnum.ATTACK_MINION_BUFF) { | ||
monster.intent = AbstractMonster.Intent.ATTACK_BUFF; | ||
} | ||
else if(intent == MonsterIntentEnum.ATTACK_MINION_DEBUFF) { | ||
monster.intent = AbstractMonster.Intent.ATTACK_DEBUFF; | ||
} | ||
else if(intent == MonsterIntentEnum.ATTACK_MINION_DEFEND) { | ||
monster.intent = AbstractMonster.Intent.ATTACK_DEFEND; | ||
} | ||
|
||
} | ||
|
||
setTarget(monster, newTarget); | ||
monster.applyPowers(); | ||
} | ||
} |
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 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
8 changes: 4 additions & 4 deletions
8
src/main/java/patches/CardPatch.java → ...ng/friendlyminions/patches/CardPatch.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
Oops, something went wrong.