Readd complexity, only thing left is enemy hp
This commit is contained in:
parent
9057f070cf
commit
bd9fad4617
2 changed files with 14 additions and 14 deletions
|
@ -2,40 +2,40 @@ monster_data = {
|
|||
'squid': {'id': 1,
|
||||
'health': 1,
|
||||
'exp': 10,
|
||||
'attack': 0,
|
||||
'attack': 2,
|
||||
'attack_type': 'slash',
|
||||
'speed': 3,
|
||||
'knockback': 20,
|
||||
'attack_radius': 1,
|
||||
'notice_radius': 1},
|
||||
'attack_radius': 50,
|
||||
'notice_radius': 100},
|
||||
|
||||
'raccoon': {'id': 2,
|
||||
'health': 1,
|
||||
'exp': 25,
|
||||
'attack': 0,
|
||||
'attack':5,
|
||||
'attack_type': 'claw',
|
||||
'speed': 2,
|
||||
'knockback': 10,
|
||||
'attack_radius': 1,
|
||||
'notice_radius': 1},
|
||||
'attack_radius': 50,
|
||||
'notice_radius': 80},
|
||||
|
||||
'spirit': {'id': 3,
|
||||
'health': 1,
|
||||
'exp': 11,
|
||||
'attack': 0,
|
||||
'attack': 2,
|
||||
'attack_type': 'thunder',
|
||||
'speed': 4,
|
||||
'knockback': 20,
|
||||
'attack_radius': 1,
|
||||
'notice_radius': 1},
|
||||
'attack_radius': 50,
|
||||
'notice_radius': 120},
|
||||
|
||||
'bamboo': {'id': 4,
|
||||
'health': 1,
|
||||
'exp': 9,
|
||||
'attack': 0,
|
||||
'attack': 1,
|
||||
'attack_type': 'leaf_attack',
|
||||
'speed': 3,
|
||||
'knockback': 20,
|
||||
'attack_radius': 1,
|
||||
'notice_radius': 1}
|
||||
'attack_radius': 50,
|
||||
'notice_radius': 100}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ class PPOMemory:
|
|||
|
||||
class ActorNetwork(nn.Module):
|
||||
|
||||
def __init__(self, input_dim, output_dim, alpha, fc1_dims=1024, fc2_dims=1024, chkpt_dir='tmp'):
|
||||
def __init__(self, input_dim, output_dim, alpha, fc1_dims=2048, fc2_dims=2048, chkpt_dir='tmp'):
|
||||
super(ActorNetwork, self).__init__()
|
||||
|
||||
self.chkpt_dir = chkpt_dir
|
||||
|
@ -92,7 +92,7 @@ class ActorNetwork(nn.Module):
|
|||
|
||||
class CriticNetwork(nn.Module):
|
||||
|
||||
def __init__(self, input_dims, alpha, fc1_dims=4096, fc2_dims=4096, chkpt_dir='tmp'):
|
||||
def __init__(self, input_dims, alpha, fc1_dims=8192, fc2_dims=8192, chkpt_dir='tmp'):
|
||||
super(CriticNetwork, self).__init__()
|
||||
|
||||
self.chkpt_dir = chkpt_dir
|
||||
|
|
Loading…
Reference in a new issue