add: console.write ("Failed to deduct " + resourceQty + " from resource " + resourceName); 
context: function deductResources (resourceName, resourceQty){	// Generic function to remove resources from the player's Pool.	if( localPlayer.resource.valueOf()[resourceName] )	{	    localPlayer.resource.valueOf()[resourceName] -= resourceQty;	    console.write("Deducted " + resourceQty + " resources.");	    return( true );	}	// If the resource wasn't in the list, report an error.	return false;}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/580cbdef5256984392214ed10a0aa9260f682d48/functions_sim_player.js/clean/binaries/data/mods/official/gui/test/functions_sim_player.js