test card 22
This commit is contained in:
@ -63,7 +63,7 @@ var (
|
||||
{Name: "password", Type: field.TypeString},
|
||||
{Name: "created_at", Type: field.TypeTime, Nullable: true},
|
||||
{Name: "updated_at", Type: field.TypeTime, Nullable: true},
|
||||
{Name: "next", Type: field.TypeString, Nullable: true, Default: "20230504"},
|
||||
{Name: "next", Type: field.TypeString, Nullable: true, Default: "20230521"},
|
||||
{Name: "group_users", Type: field.TypeInt, Nullable: true},
|
||||
}
|
||||
// UsersTable holds the schema information for the "users" table.
|
||||
|
@ -111,6 +111,14 @@ func (Card) Fields() []ent.Field {
|
||||
cp = 300 + cp + rand.Intn(500)
|
||||
}
|
||||
|
||||
if skill == "critical" {
|
||||
cp = 300 + cp + rand.Intn(500)
|
||||
}
|
||||
|
||||
if card == 22 {
|
||||
cp = 800 + cp + rand.Intn(1500)
|
||||
}
|
||||
|
||||
return cp
|
||||
}).
|
||||
Optional(),
|
||||
|
Reference in New Issue
Block a user