Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{{
- def l(n=-1):
- return levels[n]
- def automatic(func):
- def call(*a, **kw):
- names = func.__code__.co_varnames
- if "l" not in names[0:len(a)]:
- if "l" not in kw and "l" in names:
- kw["l"] = l()
- if "r" not in names[0:len(a)]:
- if "r" not in kw and "r" in names:
- kw["r"] = rng
- return func(*a, **kw)
- return call
- }}}
- {{
- maxlevels = [6, 2]
- type = ("Fission", "Fusion", "Quantum", "Plasma", "Prospace", "Potarite")
- descr = ("nuclear fission", "nuclear fusion", "quantum reactions", "plasma compression", "prospace manipulations", "potarite crystal refraction")
- pic = (36, 35, 37, 167, 165, 124)
- tech = ("Nuclear Fission", "Nuclear Fusion", "Quantum Mechanics", "Plasma Studies", "Applied Prospace Theory", "Potarite")
- supplygen = (500, 1000, 1500, 2000, 2500, -1)
- storage = (5000, 10000, 15000, 20000, 25000, 50000)
- shieldregen = (5, 10, 15, 20, 25, 50)
- @automatic
- def iff(v, l): return v // (10 if l == 2 else 1)
- }}
- Name := {"Fighter " if l() == 2 else ""}{type[l(0)-1]} {"Core" if l() == 2 else "Power Generator"}
- Description := A power generator that uses {descr[l(0)-1]} to create {"infinite " if supplygen[l(0)-1] == -1 else ""}supplies.
- Pic Num := {pic[l(0)-1]}
- Tonnage Space Taken := {iff(20)}
- Tonnage Structure := {10 if l() == 2 else min(500, 100 * l(0))}
- Cost Minerals := {iff(100 * (l(0) + 4))}
- Cost Organics := 0
- Cost Radioactives := {iff(50 * (l(0) + 3 - l(0) // 5 + 2 * (l(0) // 6)))}
- Vehicle Type := {"Fighter" if l() == 2 else "Ship"}
- Supply Amount Used := 0
- Restrictions := One Per Vehicle
- General Group := Essentials
- Family := {46 if l() == 2 else 14}
- Roman Numeral := 0
- Custom Group := 0
- Number of Tech Req := 2
- Tech Area Req 1 := {tech[l(0)-1]}
- Tech Level Req 1 := 1
- Tech Area Req 2 := Storage Systems
- Tech Level Req 2 := 1
- Number of Abilities := {4 if l() == 2 else 5}
- Ability 1 Type := Supply Storage
- Ability 1 Descr := Can store {iff(storage[l(0)-1])} units of supply.
- Ability 1 Val 1 := {iff(storage[l(0)-1])}
- Ability 1 Val 2 := 0
- Ability 2 Type := Shield Regeneration
- Ability 2 Descr := Regenerates {shieldregen[l(0)-1]} shield points per turn.
- Ability 2 Val 1 := {shieldregen[l(0)-1]}
- Ability 2 Val 2 := 0
- Ability 3 Type := {"Quantum Reactor" if supplygen[l(0)-1] == -1 else "Solar Supply Generation"}
- Ability 3 Descr := {"Generates limitless fuel" if supplygen[l(0)-1] == -1 else "Capable of generating %d supplies per star"%(10 * l(0) if l() == 2 else supplygen[l(0)-1])}.
- Ability 3 Val 1 := {0 if supplygen[l(0)-1] == -1 else 10 * l(0) if l() == 2 else supplygen[l(0)-1]}
- Ability 3 Val 2 := 0
- Ability 4 Type := AI Tag 02
- Ability 4 Descr :=
- Ability 4 Val 1 := 0
- Ability 4 Val 2 := 0
- {"Ability 5 Type := Armor Regeneration" if l() != 2 else None}
- {"Ability 5 Descr := Primary systems are repaired by engineering." if l() != 2 else None}
- {"Ability 5 Val 1 := 1" if l() != 2 else None}
- {"Ability 5 Val 2 := 0" if l() != 2 else None}
- Weapon Type := None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement