Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DynamicLevies] codegen for on_new_holder handler for immediate levy law application upon title creation #35

Closed
4 of 5 tasks
zijistark opened this issue Jun 16, 2014 · 0 comments
Assignees

Comments

@zijistark
Copy link
Member

Goal is to catch case of a new title being created out of thin air and immediately applying the appropriate levy law to it if its tier >= the primary title of the holder at that moment.

  • New codegen variant of dynlevy.0 that only sets the law for the title in question, avoiding the many loops over all demesne titles tier >= primary title (OPTIONAL)
  • Otherwise, just call the dynlevy.0 event immediately. The difference should be minimal.
  • Trigger filters only cases where FROMFROM is undefined (how to catch title creation without the ambiguous on_create_title, I reckon).
  • Triggers title tier > count (though should theoretically be covered by above)
  • Triggers realm_size = $OFFSET+1
@zijistark zijistark added this to the DynamicLeviesImplementation milestone Jun 16, 2014
@zijistark zijistark self-assigned this Jun 16, 2014
@zijistark zijistark changed the title [DynamicLevies] TODO: codegen for on_new_holder handler for immediate levy law application upon title creation [DynamicLevies] codegen for on_new_holder handler for immediate levy law application upon title creation Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant