A generator for *Star Wars* interstellar shipping and passenger jobs, based loosely on the missions you can take on in *Escape Velocity* and *Endless Space*.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

items.py 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. from typing import NamedTuple
  2. class ItemType(NamedTuple):
  3. name: str
  4. potential_tons: tuple
  5. potential_values: tuple
  6. potential_times: tuple | None = None
  7. chance_for_time: int | None = None
  8. must_be_smuggled: bool = False
  9. ITEMS = [
  10. ItemType(
  11. name="gravel",
  12. potential_tons=(1, 8),
  13. potential_values=(5, 40),
  14. ),
  15. ItemType(
  16. name="computer chips",
  17. potential_tons=(1, 3),
  18. potential_values=(10, 120),
  19. potential_times=(7, 31),
  20. chance_for_time=50,
  21. ),
  22. ItemType(
  23. name="spice",
  24. potential_tons=(1, 10),
  25. potential_values=(12, 120),
  26. potential_times=(7, 31),
  27. chance_for_time=75,
  28. must_be_smuggled=True,
  29. ),
  30. ItemType(
  31. name="live ysalamiri",
  32. potential_tons=(1, 2),
  33. potential_values=(5, 10),
  34. potential_times=(7, 14),
  35. chance_for_time=100,
  36. ),
  37. ItemType(
  38. name="empty shipping containers", potential_values=(1, 2), potential_tons=(2, 5)
  39. ),
  40. ]