コード例 #1
0
 @Override
 public void affectCharStats(MOB affected, CharStats affectableStats) {
   affectableStats.setStat(
       CharStats.STAT_STRENGTH, affectableStats.getStat(CharStats.STAT_STRENGTH) / 2);
   if (affectableStats.getStat(CharStats.STAT_STRENGTH) < 1)
     affectableStats.setStat(CharStats.STAT_STRENGTH, 1);
   super.affectCharStats(affected, affectableStats);
 }
コード例 #2
0
 @Override
 public void affectCharStats(MOB affected, CharStats affectableStats) {
   super.affectCharStats(affected, affectableStats);
   if (lycanRace() != null) {
     affectableStats.setMyRace(lycanRace());
     if (affected.baseCharStats().getStat(CharStats.STAT_AGE) > 0)
       affectableStats.setStat(
           CharStats.STAT_AGE,
           lycanRace().getAgingChart()[affected.baseCharStats().ageCategory()]);
   }
 }
コード例 #3
0
 @Override
 public void affectPhyStats(Physical affected, PhyStats affectableStats) {
   super.affectPhyStats(affected, affectableStats);
   if (!(affected instanceof MOB)) return;
   if (lycanRace() != null) {
     if (affected.name().indexOf(' ') > 0)
       affectableStats.setName(L("a @x1 called @x2", lycanRace().name(), affected.name()));
     else affectableStats.setName(L("@x1 the @x2", affected.name(), lycanRace().name()));
     lycanRace().setHeightWeight(affectableStats, 'M');
   }
 }