Diff: [root] @ 177f0557f4f | faq | css

facshuf script

File created: scripts/facshuf.erb [Diff]

-- /dev/null++ b/scripts/facshuf.erb
@@ -1 +1,31 @@
<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 %>

By Voker57 on 2014-09-03 16:07:21 +0000