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