mirror of
https://github.com/evgen-app/chess_rpg_backend.git
synced 2024-11-22 01:27:00 +03:00
fixed hero create
This commit is contained in:
parent
6c16ff008d
commit
151912b3bb
|
@ -41,9 +41,9 @@ def create_first_deck(player: Player):
|
||||||
|
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
hero.health = random.randint(0, 10)
|
hero.health = random.randint(1, 10)
|
||||||
hero.attack = random.randint(0, 10)
|
hero.attack = random.randint(1, 10)
|
||||||
hero.speed = random.randint(0, 10)
|
hero.speed = random.randint(1, 10)
|
||||||
|
|
||||||
hero.save()
|
hero.save()
|
||||||
HeroInDeck.objects.create(deck=deck, hero=hero, x=pos_x, y=pos_y)
|
HeroInDeck.objects.create(deck=deck, hero=hero, x=pos_x, y=pos_y)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user