NightactionsBlueprint

From SA Mafia Wiki
Jump to: navigation, search

The reminder for night actions that have not been given yet should use the scheduler used for deadlines.

It is important that only certain actions can be passed. In my opinion, this should only be actions that have limited uses.

Currently, the Phase-object tracks all non-instant actions that have been given in the current phase. The check for unused power is in Actor.cs:

public List<Power> GetUnusedPowers() {
            return (from p in powers
                   where !p.Instant 
                        && p.CanExecute(village) 
                        && !village.Phase.HasAction(this, p)
                   select p).ToList();
        }

Probably, the easiest way to implement this would be to make a PassAction that can be passed to Phase.QueueAction which does not do anything.