forked from Cryz/battle_royale_sim
master #1
10
debug.py
10
debug.py
@@ -4,13 +4,21 @@ import main as _main
|
||||
from utils import logs as _logs
|
||||
from bot_libs import syms as _syms
|
||||
|
||||
|
||||
def _get_random_items():
|
||||
items= []
|
||||
return items
|
||||
|
||||
def _debug_data():
|
||||
players= _syms.COLORS_NAMES
|
||||
weapons= []
|
||||
|
||||
Arena= _main.init_arena()
|
||||
for player in players:
|
||||
Arena.add_player(player)
|
||||
|
||||
items= _get_random_items()
|
||||
for item in items:
|
||||
Arena.add_item(item)
|
||||
return Arena
|
||||
|
||||
def _end_game_debug(alive_players, day):
|
||||
|
||||
@@ -1,11 +1,23 @@
|
||||
KNIFE= 1
|
||||
ARCH= 2
|
||||
MEDIKIT= 1
|
||||
#FOOD= 2 #XXX not yet implemented, how to manage it?
|
||||
#DRINK= 3 #XXX not yet implemented, how to manage it?
|
||||
|
||||
KNIFE= 4
|
||||
ARCH= 5
|
||||
|
||||
SHORT_RANGE= 1
|
||||
FAR_RANGE= 2
|
||||
|
||||
WEAPONS= {
|
||||
ITEMS= {
|
||||
MEDIKIT: {
|
||||
'is_weapon': False,
|
||||
'weight': 0.5,
|
||||
'name': 'medikit',
|
||||
'description': 'useful tool to restore health',
|
||||
'health': 1,
|
||||
},
|
||||
KNIFE: {
|
||||
'is_weapon': True,
|
||||
'weight': 1,
|
||||
'name': 'knife',
|
||||
'damage': 3,
|
||||
@@ -14,6 +26,7 @@ WEAPONS= {
|
||||
'range': SHORT_RANGE,
|
||||
},
|
||||
ARCH: {
|
||||
'is_weapon': True,
|
||||
'weight': 2,
|
||||
'name': 'gun',
|
||||
'damage': 3,
|
||||
Reference in New Issue
Block a user