rem: this.actor = actorStr.substring (1,actorStr.length-5) + nextSuffix + ".xml"; 
add: this.actor = actorStr.substring (1,actorStr.length-5) + nextSuffix + ".xml";*/ 
context: function setupRank(){	// Get the name of the entity. 	entityName = this.tag.toString();		// For accessing the this.traits.promotion object quicker	var promotion = this.traits.promotion;	// Determine whether current is basic, advanced or elite, and set rank to suit.	switch (entityName.substring (entityName.length-2, entityName.length))	{		case "_b":			// Basic. Upgrades to Advanced.			promotion.rank = "1";			// Set rank image to put over entity's head.			this.traits.rank.name = "";		break;		case "_a":			// Advanced. Upgrades to Elite.			promotion.rank = "2";			// Set rank image to put over entity's head.			this.traits.rank.name = "advanced.dds";						break;		case "_e":			// Elite. Maximum rank.			promotion.rank = "3";			// Set rank image to put over entity's head.			this.traits.rank.name = "elite.dds";						break;		default:			// Does not gain promotions.			promotion.rank = "0"			nextSuffix = ""		break;	}	// If entity is an additional rank and the correct actor has not been specified	// (it's just inherited the Basic), point it to the correct suffix. (Saves us specifying it each time.)	actorStr = this.actor.toString();	if (promotion.rank > "1"		&& actorStr.substring (actorStr.length-5, actorStr.length) != nextSuffix + ".xml")		this.actor = actorStr.substring (1,actorStr.length-5) + nextSuffix + ".xml";}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1070/06c8ff07d7cad791c9114da60c4d8fe039ac477e/entity_functions.js/clean/binaries/data/mods/official/scripts/entity_functions.js