New cape system and refactored spout appearances.

This commit is contained in:
Olof Larsson
2012-05-09 03:24:07 +02:00
parent 1f51ee9699
commit ca6b185bd1
25 changed files with 446 additions and 309 deletions

View File

@@ -53,13 +53,14 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
if (oldFaction != null) oldFaction.removeFPlayer(this);
faction.addFPlayer(this);
this.factionId = faction.getId();
SpoutFeatures.updateAppearances(this.getPlayer());
SpoutFeatures.updateTitle(this, null);
SpoutFeatures.updateTitle(null, this);
}
// FIELD: role
private Rel role;
public Rel getRole() { return this.role; }
public void setRole(Rel role) { this.role = role; SpoutFeatures.updateAppearances(this.getPlayer()); }
public void setRole(Rel role) { this.role = role; SpoutFeatures.updateTitle(this, null); }
// FIELD: title
private String title;
@@ -141,7 +142,9 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
if (doSpoutUpdate)
{
SpoutFeatures.updateAppearances(this.getPlayer());
SpoutFeatures.updateTitle(this, null);
SpoutFeatures.updateTitle(null, this);
SpoutFeatures.updateCape(this.getPlayer(), null);
}
}