hborawski / DominionCompanion

Companion app for card game Dominion
GNU General Public License v3.0
1 stars 1 forks source link

allow adding a precondition to a rule, to conditionally enable the rule #26

Closed hborawski closed 3 years ago

hborawski commented 3 years ago

This way you can create rules to do things like including a reaction card only if there is an attack card in the set

if the precondition is not met on a rule, the rule is considered satisfied

codecov-commenter commented 3 years ago

Codecov Report

Merging #26 (add01c4) into main (8497ac7) will decrease coverage by 0.37%. The diff coverage is 58.82%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #26      +/-   ##
==========================================
- Coverage   86.27%   85.90%   -0.38%     
==========================================
  Files          14       15       +1     
  Lines         736      752      +16     
==========================================
+ Hits          635      646      +11     
- Misses        101      106       +5     
Impacted Files Coverage Δ
DominionCompanion/viewModels/RuleViewModel.swift 0.00% <0.00%> (ø)
DominionCompanion/models/rules/Rule.swift 92.42% <100.00%> (+4.70%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8497ac7...add01c4. Read the comment docs.