forked from Cryz/battle_royale_sim
initial event picker idea
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from entities import player as _player
|
||||
from entities import weapons as _weapons
|
||||
from entities import weapon_syms as _wsyms
|
||||
from entities import event_picker as _events
|
||||
|
||||
class BrSimArena():
|
||||
|
||||
@@ -11,6 +12,7 @@ class BrSimArena():
|
||||
self.day= 1
|
||||
self.players= [_player.BrSimPlayer(p['name'], p.get('inventory')) for p in players]
|
||||
self.weapons= []
|
||||
self.eventClass = _events.ArenaEventPicker(self.players)
|
||||
for weapon in weapons:
|
||||
for wtype, quantity in weapon.items():
|
||||
for i in range(quantity): self.weapons.append(_weapons.BrSimWeapon(wtype))
|
||||
|
||||
13
entities/event_picker.py
Normal file
13
entities/event_picker.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from assets.events import EVENTS
|
||||
import random
|
||||
|
||||
class ArenaEventPicker():
|
||||
def __init__(self, players):
|
||||
self.players = players
|
||||
self.event_list = EVENTS
|
||||
self.already_picked_players = []
|
||||
|
||||
def pick_event():
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user