Skip to content

Commit

Permalink
clean up env cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
kywch committed Apr 16, 2024
1 parent 01999a5 commit 382129a
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions reinforcement_learning/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,6 @@ def __init__(self, env_args: Namespace):
self.set("GAME_PACKS", [(ng.AgentTraining, 1)])
self.set("CURRICULUM_FILE_PATH", env_args.curriculum_file_path)

# Game-balancing related, making the game somewhat easier
# since all agents are on their own (no team play)
self.set("TERRAIN_SCATTER_EXTRA_RESOURCES", True) # extra food/water

self.set("PROGRESSION_COMBAT_XP_SCALE", 6) # from 3

self.set("COMBAT_DAMAGE_FORMULA", alt_combat_damage_formula)

self.set("NPC_LEVEL_DEFENSE", 8) # from 15
self.set("NPC_BASE_DAMAGE", 0) # from 15
self.set("NPC_LEVEL_DAMAGE", 8) # from 15

self.set("PROGRESSION_MELEE_BASE_DAMAGE", 10) # from 20
self.set("PROGRESSION_RANGE_BASE_DAMAGE", 10)
self.set("PROGRESSION_MAGE_BASE_DAMAGE", 10)

self.set("EQUIPMENT_WEAPON_BASE_DAMAGE", 5) # from 15
self.set("EQUIPMENT_WEAPON_LEVEL_DAMAGE", 5) # from 15

self.set("EQUIPMENT_AMMUNITION_BASE_DAMAGE", 0) # from 15
self.set("EQUIPMENT_AMMUNITION_LEVEL_DAMAGE", 10) # from 15

self.set("EQUIPMENT_TOOL_BASE_DEFENSE", 15) # from 30

self.set("EQUIPMENT_ARMOR_LEVEL_DEFENSE", 3) # from 10


def make_env_creator(reward_wrapper_cls: BaseParallelWrapper):
def env_creator(*args, **kwargs):
Expand Down

0 comments on commit 382129a

Please sign in to comment.