Add EnvironmentType Evolution Condition

This commit is contained in:
JappaWakka 2023-12-04 16:36:22 +01:00
parent 48c7d9b214
commit 860241e774
1 changed files with 7 additions and 0 deletions

View File

@ -18,6 +18,7 @@ Public Class EvolutionCondition
Weather
Region
Status
EnvironmentType
End Enum
Public Structure Condition
@ -72,6 +73,8 @@ Public Class EvolutionCondition
c.ConditionType = ConditionTypes.Region
Case "status"
c.ConditionType = ConditionTypes.Status
Case "environment"
c.ConditionType = ConditionTypes.EnvironmentType
End Select
Me.Conditions.Add(c)
End Sub
@ -291,6 +294,10 @@ Public Class EvolutionCondition
If RequiredStatus <> Nothing AndAlso p.Status <> RequiredStatus Then
canEvolve = False
End If
Case ConditionTypes.EnvironmentType
If Screen.Level.EnvironmentType <> CInt(c.Argument) Then
canEvolve = False
End If
End Select
Next
End If