Advertisement
L00K3

AgeUp.per

Oct 22nd, 2021
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. ;Age Behaviour
  2. ;---Dark-Feudal---
  3. (defrule
  4. (and
  5. (food-amount > feudal-food)
  6. (and
  7. (unit-type-count villager > villager-feudal)
  8. (can-research-with-escrow feudal-age)
  9. ))
  10. =>
  11. (release-escrow food)(release-escrow gold)
  12. (set-escrow-percentage food 0)
  13. (set-escrow-percentage gold 0)
  14. (research feudal-age)
  15. (set-strategic-number sn-current-age df-transit)
  16. (disable-self)
  17. )
  18. (defrule
  19. (current-age == feudal-age)
  20. =>
  21. (set-strategic-number sn-max-drop-distance 15)
  22. (set-strategic-number sn-current-age feudal)
  23. (set-strategic-number min-headroom 8)
  24. (set-strategic-number min-farm-head 3)
  25. (set-strategic-number max-farms 12)
  26. (disable-self)
  27. )
  28.  
  29. ;---Feudal-Castle---
  30. (defrule
  31. (and
  32. (food-amount > castle-food)
  33. (and
  34. (gold-amount > castle-gold)
  35. (and
  36. (unit-type-count villager > villager-castle)
  37. (can-research-with-escrow castle-age)
  38. )))
  39. =>
  40. (release-escrow food)(release-escrow gold)
  41. (set-escrow-percentage food 0)
  42. (set-escrow-percentage gold 0)
  43. (research castle-age)
  44. (set-strategic-number sn-current-age fc-transit)
  45. (disable-self)
  46. )
  47. (defrule
  48. (current-age == castle-age)
  49. =>
  50. (set-strategic-number sn-max-tc 6)
  51. (set-strategic-number sn-current-age castle)
  52. (set-strategic-number min-headroom 15)
  53. (set-strategic-number min-farm-head 3)
  54. (set-strategic-number max-farms 16)
  55. (set-strategic-number max-pending-house 4)
  56. (disable-self)
  57. )
  58.  
  59. ;---Castle-Imperial---
  60. (defrule
  61. (and
  62. (food-amount > imperial-food)
  63. (and
  64. (gold-amount > imperial-gold)
  65. (can-research-with-escrow imperial-age)
  66. ))
  67. =>
  68. (release-escrow food)(release-escrow gold)
  69. (set-escrow-percentage food 0)
  70. (set-escrow-percentage gold 0)
  71. (research imperial-age)
  72. (set-strategic-number sn-current-age ci-transit)
  73. (disable-self)
  74. )
  75. (defrule
  76. (current-age == imperial)
  77. =>
  78. (set-strategic-number sn-current-age imperial)
  79. (set-strategic-number min-headroom 25)
  80. (set-strategic-number min-farm-head 6)
  81. (set-strategic-number max-farms 32)
  82. (disable-self)
  83. )
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement