Advertisement
MageKing17

Untitled

Apr 16th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. {{{
  2. def l(n=-1):
  3. return levels[n]
  4.  
  5. def automatic(func):
  6. def call(*a, **kw):
  7. names = func.__code__.co_varnames
  8. if "l" not in names[0:len(a)]:
  9. if "l" not in kw and "l" in names:
  10. kw["l"] = l()
  11. if "r" not in names[0:len(a)]:
  12. if "r" not in kw and "r" in names:
  13. kw["r"] = rng
  14. return func(*a, **kw)
  15. return call
  16. }}}
  17. {{
  18. maxlevels = [6, 2]
  19. type = ("Fission", "Fusion", "Quantum", "Plasma", "Prospace", "Potarite")
  20. descr = ("nuclear fission", "nuclear fusion", "quantum reactions", "plasma compression", "prospace manipulations", "potarite crystal refraction")
  21. pic = (36, 35, 37, 167, 165, 124)
  22. tech = ("Nuclear Fission", "Nuclear Fusion", "Quantum Mechanics", "Plasma Studies", "Applied Prospace Theory", "Potarite")
  23. supplygen = (500, 1000, 1500, 2000, 2500, -1)
  24. storage = (5000, 10000, 15000, 20000, 25000, 50000)
  25. shieldregen = (5, 10, 15, 20, 25, 50)
  26. @automatic
  27. def iff(v, l): return v // (10 if l == 2 else 1)
  28. }}
  29. Name := {"Fighter " if l() == 2 else ""}{type[l(0)-1]} {"Core" if l() == 2 else "Power Generator"}
  30. Description := A power generator that uses {descr[l(0)-1]} to create {"infinite " if supplygen[l(0)-1] == -1 else ""}supplies.
  31. Pic Num := {pic[l(0)-1]}
  32. Tonnage Space Taken := {iff(20)}
  33. Tonnage Structure := {10 if l() == 2 else min(500, 100 * l(0))}
  34. Cost Minerals := {iff(100 * (l(0) + 4))}
  35. Cost Organics := 0
  36. Cost Radioactives := {iff(50 * (l(0) + 3 - l(0) // 5 + 2 * (l(0) // 6)))}
  37. Vehicle Type := {"Fighter" if l() == 2 else "Ship"}
  38. Supply Amount Used := 0
  39. Restrictions := One Per Vehicle
  40. General Group := Essentials
  41. Family := {46 if l() == 2 else 14}
  42. Roman Numeral := 0
  43. Custom Group := 0
  44. Number of Tech Req := 2
  45. Tech Area Req 1 := {tech[l(0)-1]}
  46. Tech Level Req 1 := 1
  47. Tech Area Req 2 := Storage Systems
  48. Tech Level Req 2 := 1
  49. Number of Abilities := {4 if l() == 2 else 5}
  50. Ability 1 Type := Supply Storage
  51. Ability 1 Descr := Can store {iff(storage[l(0)-1])} units of supply.
  52. Ability 1 Val 1 := {iff(storage[l(0)-1])}
  53. Ability 1 Val 2 := 0
  54. Ability 2 Type := Shield Regeneration
  55. Ability 2 Descr := Regenerates {shieldregen[l(0)-1]} shield points per turn.
  56. Ability 2 Val 1 := {shieldregen[l(0)-1]}
  57. Ability 2 Val 2 := 0
  58. Ability 3 Type := {"Quantum Reactor" if supplygen[l(0)-1] == -1 else "Solar Supply Generation"}
  59. 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])}.
  60. Ability 3 Val 1 := {0 if supplygen[l(0)-1] == -1 else 10 * l(0) if l() == 2 else supplygen[l(0)-1]}
  61. Ability 3 Val 2 := 0
  62. Ability 4 Type := AI Tag 02
  63. Ability 4 Descr :=
  64. Ability 4 Val 1 := 0
  65. Ability 4 Val 2 := 0
  66. {"Ability 5 Type := Armor Regeneration" if l() != 2 else None}
  67. {"Ability 5 Descr := Primary systems are repaired by engineering." if l() != 2 else None}
  68. {"Ability 5 Val 1 := 1" if l() != 2 else None}
  69. {"Ability 5 Val 2 := 0" if l() != 2 else None}
  70. Weapon Type := None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement