All pastes #558774 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-11 14:23 UTC
rendered paste body
				var treaty = 'uninhabited';
				if (system.owner) {
					if (currentPlayer.login == system.owner) {
						treaty = 'player';
					} else {
						switch (system.treaty) {
						case 'peace':
							treaty = 'neutral';
							break;
						case 'war':
							treaty = 'enemy';
							break;
						case 'ally':
							treaty = 'ally';
							break;
						case 'allied':
							treaty = 'allied';
							break;
						}
					}
				}