File: nest_rating.py

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 (13 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
_nest_ratings = {
    "SNOWFLAKE_NEST_SPECIAL": 35.0,
    "KRAKEN_NEST_SPECIAL": 60.0,
    "JUGGERNAUT_NEST_SPECIAL": 80.0,
}


def special_is_nest(special_name: str) -> bool:
    return special_name in _nest_ratings


def get_nest_rating(special_name: str) -> float:
    return _nest_ratings.get(special_name, 0.0)