浏览代码

increase heal reward/reward tank for damage

/develop/cubewars/splashdamage
Andrew Cohen 4 年前
当前提交
e562f2f3
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 10
      Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs

10
Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs


hit.collider.gameObject.GetComponent<SmallCubeAgent>().HealAgent(m_Heal);
if (role == Role.Healer)
{
AddReward(.05f);
AddReward(.1f);
}
}

if (role == Role.DPS)
{
AddReward(.1f);
}
else if (role == Role.Tank)
{
AddReward(.05f);
}
}

{
if (!m_Dead)
{
if (role == Role.Tank)
{
AddReward(.1f);
}
m_HitPoints -= damage;
HealthStatus();
}

正在加载...
取消
保存