File: advanced_focus.macros

package info (click to toggle)
freeorion 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 194,940 kB
  • sloc: cpp: 186,508; python: 40,969; ansic: 1,164; xml: 719; makefile: 32; sh: 7
file content (22 lines) | stat: -rw-r--r-- 635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PLANETARY_DRIVE_ACTIVATION
'''
    And [
        Planet
        Focus type = "FOCUS_PLANET_DRIVE"
        WithinStarlaneJumps jumps = 1 condition = And [
            System
            Contains And [
                Or [
                    Building name = "BLD_PLANET_BEACON"
                    And [
                        Ship
                        DesignHasPart low = 1 high = 999 name = "SP_PLANET_BEACON"
                        Turn low = LocalCandidate.ArrivedOnTurn + 1
                    ]
                ]
                OwnedBy empire = Source.Owner
            ]
            Not Contains Source
        ]
    ]
'''