-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from GraysonnG/develop
Merge Develop into Master 12/10/18
- Loading branch information
Showing
11 changed files
with
156 additions
and
33 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
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
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,57 @@ | ||
package infinitespire.powers; | ||
|
||
import com.megacrit.cardcrawl.core.AbstractCreature; | ||
import com.megacrit.cardcrawl.powers.AbstractPower; | ||
import infinitespire.InfiniteSpire; | ||
|
||
public class KeyMirrorPower extends AbstractPower { | ||
|
||
public enum KeyColor { | ||
RUBY, | ||
SAPPHIRE, | ||
EMERALD | ||
} | ||
|
||
private KeyColor keyColor; | ||
|
||
public KeyMirrorPower(AbstractCreature owner, KeyColor keyColor){ | ||
this.keyColor = keyColor; | ||
this.owner = owner; | ||
this.amount = -1; | ||
this.ID = "is_KeyMirrorPower_" + keyColor.toString().toLowerCase(); | ||
this.type = PowerType.BUFF; | ||
this.priority = -99999; | ||
|
||
switch(keyColor){ | ||
case RUBY: | ||
this.name = "Ruby Mirror"; | ||
this.img = InfiniteSpire.getTexture("img/infinitespire/powers/rubyKey.png"); | ||
break; | ||
case SAPPHIRE: | ||
this.name = "Sapphire Mirror"; | ||
this.img = InfiniteSpire.getTexture("img/infinitespire/powers/sapphireKey.png"); | ||
break; | ||
case EMERALD: | ||
this.name = "Emerald Mirror"; | ||
this.img = InfiniteSpire.getTexture("img/infinitespire/powers/emeraldKey.png"); | ||
break; | ||
} | ||
|
||
this.updateDescription(); | ||
} | ||
|
||
@Override | ||
public void updateDescription() { | ||
switch (this.keyColor) { | ||
case RUBY: | ||
this.description = owner.name + " will be more intelligent."; | ||
break; | ||
case SAPPHIRE: | ||
this.description = owner.name + " will be more aggressive."; | ||
break; | ||
case EMERALD: | ||
this.description = owner.name + " will be more powerful."; | ||
break; | ||
} | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.