iamlogand / republic-of-rome-online

An online adaptation of The Republic of Rome, a strategy board game
https://www.roronline.com/
MIT License
5 stars 2 forks source link

Add helper methods for creating action logs #475

Open iamlogand opened 6 months ago

iamlogand commented 6 months ago

It should be possible to create an action log with only create_action_log("personal_revenue", None, None), where the arguments are:

  1. Type
  2. Faction
  3. Data

This function can assume that the index of the action log is the index of the last action log + 1, and the step is the latest step.

There should also be a higher-level version called create_action_log_and_message, similar to the existing helper called create_step_and_message.