Skip to content

Commit

Permalink
Disable lethality damage for lords, mountslayers vs falconknights
Browse files Browse the repository at this point in the history
closes #44 and #43
  • Loading branch information
HamaIndustries committed Apr 21, 2016
1 parent 5cd665b commit 0da79e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/net/fe/fightStage/Lethality.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ public boolean attempt(Unit user, int range) {
*/
@Override
public boolean runPreAttack(CombatCalculator stage, Unit a, Unit d) {
a.setTempMod("Str", 9000);
a.setTempMod("Hit", 9000);
if(!d.getTheClass().name.equals("Lord")){
a.setTempMod("Str", 9000);
a.setTempMod("Hit", 9000);
}
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/net/fe/unit/WeaponFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class WeaponFactory {

/** The Constant mounted. */
private static final List<String> mounted =
Arrays.asList("Paladin", "Valkyrie", "Falconknight",
Arrays.asList("Paladin", "Valkyrie", /*"Falconknight",*/
"Ephraim", "Eirika", "Eliwood");

/** The Constant armored. */
Expand Down

3 comments on commit 0da79e9

@HamaIndustries
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the "!" means NOT, effectively, if(NOT this unit is a lord)

@HamaIndustries
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to try contributing, take a look at https://www.codecademy.com/ . It teaches the basics for most things java, and should make it easy to understand what we're adding when we do.

@HamaIndustries
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you understand it, FEMP is actually quite simple. I look forward to when you do.

Please sign in to comment.