tiger_lib/vic3/tables/
rules.rs

1/// Specification of the hardcoded scripted rules in Vic3.
2///
3/// Each definition is one rule.
4///
5/// `tooltipped` says whether the contents of this rule are tooltipped for the player.
6/// It defaults to no. Left out when tooltipping is uncertain, otherwise set to yes or no.
7///
8/// `root` is the root of the scope context. Other fields are added named scopes.
9///
10/// For ease of updating, the rules are in the order they are found in the game files.
11// LAST UPDATED VIC3 VERSION 1.7.1
12// Taken from information in common/scripted_rules/00_scripted_rules.txt
13pub const SCRIPTED_RULES: &str = "
14	violate_sovereignty_war_check_rule = {
15		tooltipped = no
16		root = war
17		target_country = country
18	}
19
20	has_voting_franchise = {
21		tooltipped = no
22		root = country
23	}
24	
25	can_form_power_bloc = {
26		root = country
27	}
28
29	can_lead_power_bloc = {
30		root = country
31	}
32
33	is_weak_power_bloc = {
34		root = power_bloc
35	}
36
37	can_start_diplomatic_plays_against = {
38		root = country
39		target_country = country
40	}
41
42	can_join_side_in_diplomatic_play = {
43		root = country
44		target_country = country
45		enemy_country = country
46	}
47
48	can_impose_law_default = {
49		root = country
50		target_country = country
51		law = law_type
52	}
53
54	# TODO: find out what the scopes are here.
55	unlock_power_bloc_principle_slot_1 = {
56		root = power_bloc
57	}
58	unlock_power_bloc_principle_slot_2 = {
59		root = power_bloc
60	}
61	unlock_power_bloc_principle_slot_3 = {
62		root = power_bloc
63	}
64	unlock_power_bloc_principle_slot_4 = {
65		root = power_bloc
66	}
67
68	# TODO: find out what the scopes are here.
69	unlock_power_bloc_formation_principle_slot_1 = {
70		root = ALL
71	}
72	unlock_power_bloc_formation_principle_slot_2 = {
73		root = ALL
74	}
75	unlock_power_bloc_formation_principle_slot_3 = {
76		root = ALL
77	}
78	unlock_power_bloc_formation_principle_slot_4 = {
79		root = ALL
80	}
81
82	can_sign_treaty_with = {
83		root = country
84		other_country = country
85	}
86	";