fixes big evebts abd on actions plus mroe

This commit is contained in:
Greekman 2026-11-21 19:27:08 +00:00
parent c9d520e5a1
commit bce2aa31a1
207 changed files with 100377 additions and 9296 deletions

View file

@ -24,6 +24,49 @@ on_artifact_changed_owner = {
on_action = on_artifact_claim_gained
}
}
if = {
limit = {
gdp_menagerie_artifact_has_active_story_trigger = { CHARACTER = scope:old_owner ARTIFACT = scope:artifact }
}
scope:old_owner = {
random_owned_story = {
limit = {
story_type = story_cycle_menagerie
var:artifact_type ?= scope:artifact
}
if = {
limit = {
scope:artifact = { artifact_type = creature }
scope:owner = {
domicile ?= { is_domicile_type = merchant_company }
}
}
make_story_owner = scope:owner
}
else = {
end_story = yes
}
}
}
}
# GDP Associate promise
scope:owner = {
if = {
limit = {
var:associate_request_type ?= flag:artifact
var:associate_request_merchant ?= scope:old_owner
scope:old_owner = {
any_in_list = {
variable = associate_requests
this = scope:owner
}
}
}
scope:old_owner = {
gdp_merchant_associate_promise_completed_merchant_effect = { ASSOCIATE = scope:owner }
}
}
}
}
# Re-identify the Chad/Ironside skull whenever it changes hands.