Skip to main content

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		region = strategic_region
41		stakeholder = country
42		state = state
43	}
44
45	can_join_side_in_diplomatic_play = {
46		root = country
47		target_country = country
48		enemy_country = country
49		region = strategic_region
50	}
51
52	can_impose_law_default = {
53		root = country
54		target_country = country
55		law = law_type
56	}
57
58	# TODO: find out what the scopes are here.
59	unlock_power_bloc_principle_slot_1 = {
60		root = power_bloc
61	}
62	unlock_power_bloc_principle_slot_2 = {
63		root = power_bloc
64	}
65	unlock_power_bloc_principle_slot_3 = {
66		root = power_bloc
67	}
68	unlock_power_bloc_principle_slot_4 = {
69		root = power_bloc
70	}
71
72	# TODO: find out what the scopes are here.
73	unlock_power_bloc_formation_principle_slot_1 = {
74		root = ALL
75	}
76	unlock_power_bloc_formation_principle_slot_2 = {
77		root = ALL
78	}
79	unlock_power_bloc_formation_principle_slot_3 = {
80		root = ALL
81	}
82	unlock_power_bloc_formation_principle_slot_4 = {
83		root = ALL
84	}
85
86	can_sign_treaty_with = {
87		root = country
88		other_country = country
89	}
90
91	can_threaten_naval_hostilities = {
92		root = country
93		other_country = country
94	}
95	";