if (this.rankings[rank].goal_id != null) {
if (update_method == null) {
if (debug_messages == true) GSLog.Info("Removing goal_id " + this.rankings[rank].goal_id + " from this.rankings[" + rank + "].goal_id");
GSGoal.Remove(this.rankings[rank].goal_id);
this.rankings[rank].goal_id = null;
if (debug_messages == true) GSLog.Info("Removing c_id " + this.rankings[rank].c_id + " from this.rankings[" + rank + "].c_id");
this.rankings[rank].c_id = null;
if (debug_messages == true) GSLog.Info("Removing rank " + this.rankings[rank].rank + " from this.rankings[" + rank + "].rank");
this.rankings[rank].rank = null;
if (debug_messages == true) GSLog.Info("Removing c_value " + this.rankings[rank].c_value + " from this.rankings[" + rank + "].c_value");
this.rankings[rank].c_value = null;
this.rankings[rank].goal_id = GSGoal.New(GSCompany.COMPANY_INVALID, GSText(GSText.STR_RANK_COMPANY_NUM, rank, c_id, c_id), GSGoal.GT_NONE, 0);
if (debug_messages == true) GSLog.Info("Re-added goal_id " + this.rankings[rank].goal_id + " to this.rankings[" + rank + "].goal_id (text: rank = " + rank + ", c_id = " + c_id + ")");
this.rankings[rank].c_id = c_id;
if (debug_messages == true) GSLog.Info("Re-added c_id " + this.rankings[rank].c_id + " to this.rankings[" + rank + "].c_id");
this.rankings[rank].rank = rank;
if (debug_messages == true) GSLog.Info("Re-added rank " + this.rankings[rank].rank + " to this.rankings[" + rank + "].rank");
this.rankings[rank].c_value = c_value;
if (debug_messages == true) GSLog.Info("Re-added c_value " + this.rankings[rank].c_value + " to this.rankings[" + rank + "].c_value");
} else {
if (this.rankings[rank].c_id != c_id || this.rankings[rank].rank != rank) {
GSGoal.SetText(this.rankings[rank].goal_id, GSText(GSText.STR_RANK_COMPANY_NUM, rank, c_id, c_id));
if (debug_messages == true) GSLog.Info("Updating goal_id " + this.rankings[rank].goal_id + " to this.rankings[" + rank + "].goal_id (text: rank = " + rank + ", c_id = " + c_id + ")");
if (this.rankings[rank].c_id != c_id) {
this.rankings[rank].c_id = c_id;
if (debug_messages == true) GSLog.Info("Updating c_id " + this.rankings[rank].c_id + " to this.rankings[" + rank + "].c_id");
}
if (this.rankings[rank].rank != rank) {
this.rankings[rank].rank = rank;
if (debug_messages == true) GSLog.Info("Updating rank " + this.rankings[rank].rank + " to this.rankings[" + rank + "].rank");
}
}
}
} else {
this.rankings[rank].goal_id = GSGoal.New(GSCompany.COMPANY_INVALID, GSText(GSText.STR_RANK_COMPANY_NUM, rank, c_id, c_id), GSGoal.GT_NONE, 0);
if (debug_messages == true) GSLog.Info("Added goal_id " + this.rankings[rank].goal_id + " to this.rankings[" + rank + "].goal_id (text: rank = " + rank + ", c_id = " + c_id + ")");
this.rankings[rank].c_id = c_id;
if (debug_messages == true) GSLog.Info("Added c_id " + this.rankings[rank].c_id + " to this.rankings[" + rank + "].c_id");
this.rankings[rank].rank = rank;
if (debug_messages == true) GSLog.Info("Added rank " + this.rankings[rank].rank + " to this.rankings[" + rank + "].rank");
this.rankings[rank].c_value = c_value;
if (debug_messages == true) GSLog.Info("Added c_value " + this.rankings[rank].c_value + " to this.rankings[" + rank + "].c_value");
}