Files
dockipelago/worlds/evn/rezdata/crons.py
Jonathan Tinney 7971961166
Some checks failed
Analyze modified files / flake8 (push) Failing after 2m28s
Build / build-win (push) Has been cancelled
Build / build-ubuntu2204 (push) Has been cancelled
ctest / Test C++ ubuntu-latest (push) Has been cancelled
ctest / Test C++ windows-latest (push) Has been cancelled
Analyze modified files / mypy (push) Has been cancelled
Build and Publish Docker Images / Push Docker image to Docker Hub (push) Successful in 5m4s
Native Code Static Analysis / scan-build (push) Failing after 5m2s
type check / pyright (push) Successful in 1m7s
unittests / Test Python 3.11.2 ubuntu-latest (push) Failing after 16m23s
unittests / Test Python 3.12 ubuntu-latest (push) Failing after 28m19s
unittests / Test Python 3.13 ubuntu-latest (push) Failing after 14m49s
unittests / Test hosting with 3.13 on ubuntu-latest (push) Successful in 5m0s
unittests / Test Python 3.13 macos-latest (push) Has been cancelled
unittests / Test Python 3.11 windows-latest (push) Has been cancelled
unittests / Test Python 3.13 windows-latest (push) Has been cancelled
add schedule I, sonic 1/frontiers/heroes, spirit island
2026-04-02 23:46:36 -07:00

325 lines
9.1 KiB
Python

# This file is auto generated by a custom script.
# With how EVN plugins work, we essentially have to reconstruct any objects we want to modify.
# This file contains a table of character data used in EV Nova.
# Search and replace regex: (\})\r?\n?\},\r?\n?\{(\r?\n?\s+)"([\d]*)"(:) -> $1,$2$3$4
# NOTE: This is only a partial export. Trying not to shove too many resources into mod file, so in this case just took what I needed to fix
# Also, these have been manually adjusted.
from typing import Dict, TypedDict, List, Set
cron_columns = {
"resource_type": "Resource Type",
"id": "ID",
"name": "Name",
"first_day": "First Day",
"first_month": "First Month",
"first_year": "First Year",
"last_day": "Last Day",
"last_month": "Last Month",
"last_year": "Last Year",
"random": "Random",
"duration": "Duration",
"pre_holdoff": "Pre Holdoff",
"post_holdoff": "Post Holdoff",
"enable_on": "Enable On",
"on_start": "On Start",
"on_end": "On End",
"contribute": "Contribute",
"require": "Require",
"government_1": "Government 1",
"government_news_1": "Government News 1",
"government_2": "Government 2",
"government_news_2": "Government News 2",
"government_3": "Government 3",
"government_news_3": "Government News 3",
"government_4": "Government 4",
"government_news_4": "Government News 4",
"independent_news": "Independent News",
"flags": "Flags",
"end_of_resource": "End-of-resource"
}
class CronDict(TypedDict, total=False):
resource_type: str
id: int
name: str
first_day: int
first_month: int
first_year: int
last_day: int
last_month: int
last_year: int
random: int
duration: int
pre_holdoff: int
post_holdoff: int
enable_on: str
on_start: str
on_end: str
contribute: int
require: int
government_1: int
government_news_1: int
government_2: int
government_news_2: int
government_3: int
government_news_3: int
government_4: int
government_news_4: int
independent_news: int
flags: int
end_of_resource: str
cron_table: Dict[int, CronDict] = {
129: {
"resource_type": "cron",
"id": "129",
"name": "Terraforming Start",
"first_day": "1",
"first_month": "1",
"first_year": "1178",
"last_day": "1",
"last_month": "1",
"last_year": "1180",
"random": "100",
"duration": "0",
"pre_holdoff": "0",
"post_holdoff": "0",
"enable_on": "!(b17 & b9998)",
"on_start": "",
"on_end": "b9998",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
},
130: {
"resource_type": "cron",
"id": "130",
"name": "Terraforming misn 2",
"first_day": "-1",
"first_month": "-1",
"first_year": "-1",
"last_day": "-1",
"last_month": "-1",
"last_year": "-1",
"random": "100",
"duration": "0",
"pre_holdoff": "1",
"post_holdoff": "0",
"enable_on": "b17 & !b35",
"on_start": "b35",
"on_end": "",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
},
131: {
"resource_type": "cron",
"id": "131",
"name": "Terraforming misn 3",
"first_day": "-1",
"first_month": "-1",
"first_year": "-1",
"last_day": "-1",
"last_month": "-1",
"last_year": "-1",
"random": "100",
"duration": "0",
"pre_holdoff": "1",
"post_holdoff": "0",
"enable_on": "b18 & !b36",
"on_start": "b36",
"on_end": "",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
},
132: {
"resource_type": "cron",
"id": "132",
"name": "Terraforming misn 4",
"first_day": "-1",
"first_month": "-1",
"first_year": "-1",
"last_day": "-1",
"last_month": "-1",
"last_year": "-1",
"random": "100",
"duration": "0",
"pre_holdoff": "1",
"post_holdoff": "0",
"enable_on": "b19 & !b37",
"on_start": "b37",
"on_end": "",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
},
133: {
"resource_type": "cron",
"id": "133",
"name": "Terraforming misn 5",
"first_day": "-1",
"first_month": "-1",
"first_year": "-1",
"last_day": "-1",
"last_month": "-1",
"last_year": "-1",
"random": "100",
"duration": "0",
"pre_holdoff": "1",
"post_holdoff": "0",
"enable_on": "b20 & !b38",
"on_start": "b38",
"on_end": "",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
},
134: {
"resource_type": "cron",
"id": "134",
"name": "Terraforming misn 6",
"first_day": "-1",
"first_month": "-1",
"first_year": "-1",
"last_day": "-1",
"last_month": "-1",
"last_year": "-1",
"random": "100",
"duration": "0",
"pre_holdoff": "1",
"post_holdoff": "0",
"enable_on": "b21 & !b39",
"on_start": "b39",
"on_end": "",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
},
135: {
"resource_type": "cron",
"id": "135",
"name": "Terraforming misn 7",
"first_day": "-1",
"first_month": "-1",
"first_year": "-1",
"last_day": "-1",
"last_month": "-1",
"last_year": "-1",
"random": "100",
"duration": "0",
"pre_holdoff": "1",
"post_holdoff": "0",
"enable_on": "b22 & !b40",
"on_start": "b40",
"on_end": "",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
},
136: {
"resource_type": "cron",
"id": "136",
"name": "Terraforming misn 8",
"first_day": "-1",
"first_month": "-1",
"first_year": "-1",
"last_day": "-1",
"last_month": "-1",
"last_year": "-1",
"random": "100",
"duration": "0",
"pre_holdoff": "1",
"post_holdoff": "0",
"enable_on": "b23 & !b41",
"on_start": "b41",
"on_end": "",
"contribute": "0x0000000000000000",
"require": "0x0000000000000000",
"government_1": "0",
"government_news_1": "0",
"government_2": "0",
"government_news_2": "0",
"government_3": "0",
"government_news_3": "0",
"government_4": "0",
"government_news_4": "0",
"independent_news": "0",
"flags": "0x0000",
"end_of_resource": "EOR"
}
}