File diff: [root]/scripts/facshuf.erb @ 177f0557f4f | src | log | faq | css

diff --git a/scripts/facshuf.erb b/scripts/facshuf.erb
new file mode 100644
index 0000000..ee0ebac
-- /dev/null
++ b/scripts/facshuf.erb
@@ -0,0 +1,30 @@
<h1> List of factions in Alpha Centauri, shuffled and trimmed to 7 entries, because default randomizing sucks </h1>

<p> Makes sure you get your fair share of alien adversaries! </p>

alllist = "Spartan Federation
Gaia's Stepdaughters
University of Planet
Peacekeeping Forces
Human Hive
Lord's Believers
Morgan Industries
Cult of Planet
Cybernetic Consciousness
Data Angels
Free Drones
Nautilus Pirates
Manifold Usurpers
Manifold Caretakers".split("\n")

faclist = alllist.shuffle[0..6]

while (faclist.include? "Manifold Usurpers") ^ (faclist.include? "Manifold Caretakers")
faclist = alllist.shuffle[0..6]
<%= faclist.join("<br />").html_safe %>
\ No newline at end of file

By Voker57 on 2014-09-03 20:07:21 +0400 Powered by bitcheese wiki engine