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,
|
'squid': {'id': 1,
|
||||||
'health': 1,
|
'health': 1,
|
||||||
'exp': 10,
|
'exp': 10,
|
||||||
'attack': 0,
|
'attack': 2,
|
||||||
'attack_type': 'slash',
|
'attack_type': 'slash',
|
||||||
'speed': 3,
|
'speed': 3,
|
||||||
'knockback': 20,
|
'knockback': 20,
|
||||||
'attack_radius': 1,
|
'attack_radius': 50,
|
||||||
'notice_radius': 1},
|
'notice_radius': 100},
|
||||||
|
|
||||||
'raccoon': {'id': 2,
|
'raccoon': {'id': 2,
|
||||||
'health': 1,
|
'health': 1,
|
||||||
'exp': 25,
|
'exp': 25,
|
||||||
'attack': 0,
|
'attack':5,
|
||||||
'attack_type': 'claw',
|
'attack_type': 'claw',
|
||||||
'speed': 2,
|
'speed': 2,
|
||||||
'knockback': 10,
|
'knockback': 10,
|
||||||
'attack_radius': 1,
|
'attack_radius': 50,
|
||||||
'notice_radius': 1},
|
'notice_radius': 80},
|
||||||
|
|
||||||
'spirit': {'id': 3,
|
'spirit': {'id': 3,
|
||||||
'health': 1,
|
'health': 1,
|
||||||
'exp': 11,
|
'exp': 11,
|
||||||
'attack': 0,
|
'attack': 2,
|
||||||
'attack_type': 'thunder',
|
'attack_type': 'thunder',
|
||||||
'speed': 4,
|
'speed': 4,
|
||||||
'knockback': 20,
|
'knockback': 20,
|
||||||
'attack_radius': 1,
|
'attack_radius': 50,
|
||||||
'notice_radius': 1},
|
'notice_radius': 120},
|
||||||
|
|
||||||
'bamboo': {'id': 4,
|
'bamboo': {'id': 4,
|
||||||
'health': 1,
|
'health': 1,
|
||||||
'exp': 9,
|
'exp': 9,
|
||||||
'attack': 0,
|
'attack': 1,
|
||||||
'attack_type': 'leaf_attack',
|
'attack_type': 'leaf_attack',
|
||||||
'speed': 3,
|
'speed': 3,
|
||||||
'knockback': 20,
|
'knockback': 20,
|
||||||
'attack_radius': 1,
|
'attack_radius': 50,
|
||||||
'notice_radius': 1}
|
'notice_radius': 100}
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,7 @@ class PPOMemory:
|
||||||
|
|
||||||
class ActorNetwork(nn.Module):
|
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__()
|
super(ActorNetwork, self).__init__()
|
||||||
|
|
||||||
self.chkpt_dir = chkpt_dir
|
self.chkpt_dir = chkpt_dir
|
||||||
|
@ -92,7 +92,7 @@ class ActorNetwork(nn.Module):
|
||||||
|
|
||||||
class CriticNetwork(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__()
|
super(CriticNetwork, self).__init__()
|
||||||
|
|
||||||
self.chkpt_dir = chkpt_dir
|
self.chkpt_dir = chkpt_dir
|
||||||
|
|
Loading…
Reference in a new issue