Use the system messages now that we have 'em.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@389 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: AtlantiManager.java,v 1.15 2001/10/18 23:11:03 mdb Exp $
|
// $Id: AtlantiManager.java,v 1.16 2001/10/18 23:57:02 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.venison;
|
package com.threerings.venison;
|
||||||
|
|
||||||
@@ -226,8 +226,7 @@ public class VenisonManager
|
|||||||
|
|
||||||
String message = qual + " " + TileCodes.FEATURE_NAMES[f.type] +
|
String message = qual + " " + TileCodes.FEATURE_NAMES[f.type] +
|
||||||
" scored " + score + " points for " + names + ".";
|
" scored " + score + " points for " + names + ".";
|
||||||
ChatProvider.sendChatMessage(
|
ChatProvider.sendSystemMessage(_venobj.getOid(), message);
|
||||||
_venobj.getOid(), SERVER_USERNAME, message);
|
|
||||||
|
|
||||||
Log.info("New scores: " + StringUtil.toString(_venobj.scores));
|
Log.info("New scores: " + StringUtil.toString(_venobj.scores));
|
||||||
|
|
||||||
@@ -299,8 +298,8 @@ public class VenisonManager
|
|||||||
// players about the score
|
// players about the score
|
||||||
String message = _players[p.owner] + " scored " +
|
String message = _players[p.owner] + " scored " +
|
||||||
score + " points for " + qual + " cloister.";
|
score + " points for " + qual + " cloister.";
|
||||||
ChatProvider.sendChatMessage(
|
ChatProvider.sendSystemMessage(
|
||||||
_venobj.getOid(), SERVER_USERNAME, message);
|
_venobj.getOid(), message);
|
||||||
|
|
||||||
// add the score to the owning player
|
// add the score to the owning player
|
||||||
_venobj.scores[p.owner] += score;
|
_venobj.scores[p.owner] += score;
|
||||||
@@ -446,8 +445,7 @@ public class VenisonManager
|
|||||||
_venobj.scores[i] += cityScores[i];
|
_venobj.scores[i] += cityScores[i];
|
||||||
String message = _players[i] + " scores " + cityScores[i] +
|
String message = _players[i] + " scores " + cityScores[i] +
|
||||||
" points for farmed cities.";
|
" points for farmed cities.";
|
||||||
ChatProvider.sendChatMessage(
|
ChatProvider.sendSystemMessage(_venobj.getOid(), message);
|
||||||
_venobj.getOid(), SERVER_USERNAME, message);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -701,7 +699,4 @@ public class VenisonManager
|
|||||||
|
|
||||||
/** Used to score features groups. */
|
/** Used to score features groups. */
|
||||||
protected int[] _claimGroupVector;
|
protected int[] _claimGroupVector;
|
||||||
|
|
||||||
/** The username we use for delivering server chat messages. */
|
|
||||||
protected static final String SERVER_USERNAME = "game notice";
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user