1
0

initial event picker idea

This commit is contained in:
2025-07-24 22:57:28 +02:00
parent 761cf794b4
commit 526668ed5d
4 changed files with 30 additions and 1 deletions

View File

@@ -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
View 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