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

move the carryover gold handling and dialog to lua #7610

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Feb 21, 2024

  1. move the carryover gold handling and dialog to lua

    The idea is to make it easier for umc devs to implement
    their own carryover / early finish bonus mechanics. Maybe
    we can also make use of it in Worls Conquest.
    gfgtdf committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    ea1f5ac View commit details
    Browse the repository at this point in the history
  2. Add wesnoth.current.is_replaying

    And use it in carryover_gold.lua
    gfgtdf committed Feb 21, 2024
    Configuration menu
    Copy the full SHA
    6230d89 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2024

  1. split gold_carryover into smaller functions

    this way the functions can easily be reused for alternative
    carryover implementations.
    gfgtdf committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    3aa00fb View commit details
    Browse the repository at this point in the history
  2. Refactor WC carryover implementation.

    We now use a modified default carryover calculation,
    the main advantage is it now uses the normal carryover
    message on endlevel.
    gfgtdf committed Feb 23, 2024
    Configuration menu
    Copy the full SHA
    0e592b9 View commit details
    Browse the repository at this point in the history