rem:  resourceNameU = resourceName.toUpperCase(); 
context: function deductResources (resourceName, resourceQty){	// Generic function to remove resources from the player's Pool.	// Ensure resource name is title-case.	resourceName = toTitleCase (resourceName);	// Create uppercase name.	resourceNameU = resourceName.toUpperCase();//	if( localPlayer.resource.valueOf()[resourceNameU] )//	{		// Set resource value.		localPlayer.resource.valueOf()[resourceNameU] -= resourceQty;				// Dynamically adjust width of resource counter based on caption length.		refreshResources();		if (resourceName != "Housing" && resourceName != "Population")			console.write("Deducted " + resourceQty + " " + resourceName + ".");		return( true );//	}//	// If the resource wasn't in the list, report an error.//	console.write ("Failed to deduct " + resourceQty + " from resource " + resourceName);//	return false;}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/b73622196e03cfe48613fb7047cf6c61ceaf24b0/functions_sim_player.js/clean/binaries/data/mods/official/gui/test/functions_sim_player.js