Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: tactical grid #217

Merged
merged 6 commits into from
Feb 17, 2025
Merged

feat: tactical grid #217

merged 6 commits into from
Feb 17, 2025

Conversation

raspersc2
Copy link
Contributor

No description provided.

Revised the `army_value` metric across all units in `unit_data.py` based on a new formula. This change ensures better balance and consistency in gameplay mechanics. All relevant units have updated values accordingly.
Copy link

github-actions bot commented Feb 17, 2025

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/ares
   __init__.py20100% 
   behavior_exectioner.py15847%30–33, 47, 56–59
   cache.py160100% 
   config_parser.py271063%45, 48–49, 55, 76–90
   consts.py407499%184, 207, 211–212
   custom_bot_ai.py1014951%82–83, 130–139, 144–161, 187, 207–227, 241–288, 305–311, 319–332, 338, 362–363
   main.py40232020%80–115, 126, 129, 140–230, 242–258, 270–302, 356, 373–374, 379, 382–393, 409, 441–450, 464, 478–489, 503, 519, 532–533, 564–590, 612–628, 649–695, 704–720, 734–756, 765–767, 778–814, 832–841, 855–863, 894–979, 995, 1014, 1030–1048
src/ares/behaviors
   __init__.py10100% 
   behavior.py5180%25
src/ares/behaviors/combat
   __init__.py10100% 
   combat_maneuver.py14471%100–105
src/ares/behaviors/combat/group
   __init__.py70100% 
   a_move_group.py21767%38–50
   combat_group_behavior.py281161%29, 42, 46–56, 70–73
   group_use_ability.py24962%49–62
   keep_group_safe.py251060%42–55
   path_group_to_target.py391464%75–113
   stutter_group_back.py573146%50, 58–88, 93, 100–124
   stutter_group_forward.py422540%37–81
src/ares/behaviors/combat/individual
   __init__.py180100% 
   a_move.py130100% 
   attack_target.py130100% 
   combat_individual_behavior.py6183%29
   drop_cargo.py15473%43–47
   ghost_snipe.py432542%34–48, 53–79
   keep_unit_safe.py190100% 
   medivac_heal.py281257%35–58
   path_unit_to_target.py26196%66
   pick_up_cargo.py291066%54–73
   place_predictive_aoe.py61610%1–223
   raven_auto_turret.py342041%31–67
   shoot_target_in_range.py26869%49, 66–79
   siege_tank_decision.py694338%56–143, 147, 167–185
   stutter_unit_back.py261062%48–60
   stutter_unit_forward.py18667%41–47
   use_ability.py19668%49–57
   use_aoe_ability.py593246%61–103, 108–156
   use_transfuse.py23865%38–60
   worker_kite_back.py18667%48–53
src/ares/behaviors/macro
   __init__.py150100% 
   addon_swap.py261254%47–88
   auto_supply.py562261%45–48, 55, 65, 72, 82–100, 119–126
   build_structure.py521865%77, 80, 83, 91, 110–115, 119–123, 126–144
   build_workers.py14471%36–48
   expansion_controller.py392049%48–64, 69–79, 97–116
   gas_building_controller.py281450%46–92
   macro_behavior.py6183%28
   macro_plan.py15567%47, 50–55
   mining.py18914921%86–239, 253, 258–288, 319–402, 438–463, 485–502, 508–515
   production_controller.py1299824%82–213, 226–246, 249–265, 270–287, 292–308
   restore_power.py432444%43–61, 78–89, 107–135
   spawn_controller.py1208529%82–229, 260–264, 291–300, 304–306, 312–322, 325–343
   speed_mining.py543535%57–122
   tech_up.py775627%55–145, 166–211
   upgrade_controller.py402148%57–105
src/ares/build_runner
   __init__.py00100% 
   build_order_parser.py23118918%56–66, 159–160, 182–188, 214–215, 248–255, 260–329, 334–387, 392–397, 402–410, 429–446, 451–480, 483–528, 545–604
   build_order_runner.py33625225%118–164, 167–172, 175–176, 179–181, 203, 210, 221–240, 247–251, 264–466, 489–553, 570–576, 583–590, 593–606, 609–656, 669–679, 699–796
   build_order_step.py140100% 
src/ares/dicts
   __init__.py00100% 
   ability_cooldowns.py30100% 
   aoe_ability_to_range.py40100% 
   cost_dict.py30100% 
   does_not_use_larva.py30100% 
   enemy_detector_ranges.py40100% 
   enemy_vs_ground_static_defense_ranges.py30100% 
   pickup_range.py20100% 
   structure_to_building_size.py30100% 
   turn_rate.py440%1–7
   unit_alias.py20100% 
   unit_data.py30100% 
   unit_tech_requirement.py20100% 
   weight_costs.py30100% 
src/ares/managers
   __init__.py00100% 
   ability_tracker_manager.py30777%138–143, 231
   building_manager.py18212531%165–170, 192–321, 324–327, 330–342, 348–366, 397–471, 503, 528–534, 569, 596–601
   combat_sim_manager.py441761%150–157, 162–171
   data_manager.py804840%125, 129–134, 152–167, 171, 178–184, 189–194, 205–226, 229–235
   enemy_to_base_manager.py1004456%132, 168, 175, 194, 199, 217–222, 251–277, 292–295, 317–326, 335–349
   flying_structure_manager.py442152%62, 92, 128, 136–156, 159
   grid_manager.py25510559%242–275, 364–383, 396, 410–413, 441–444, 451, 457–462, 473–474, 485–486, 497–503, 512, 519–528, 539, 548, 557–564, 579–593, 602–609, 618–624, 633–638, 647–667, 676–685, 694, 714, 741–747, 756–762, 771–774, 783–789, 802, 817–824, 851, 933–934, 950–951, 954, 978–980
   hub.py69987%198–199, 230–235, 250, 297
   intel_manager.py1184661%131–135, 199–215, 232–243, 260–286, 301, 315–331, 335, 344, 363–364, 367–368, 371–372, 389–390, 396–397, 411–413
   manager.py160100% 
   manager_mediator.py3347278%198, 277, 294, 309, 323, 342, 398, 479, 496, 512, 528, 545, 561, 577, 593, 610, 626, 645, 660, 674, 687, 702, 715, 764, 783, 838, 966, 1054, 1072, 1085, 1130, 1189, 1205, 1261, 1284, 1299, 1347, 1367, 1388, 1430, 1450, 1467, 1483, 1499, 1512, 1526, 1539, 1553, 1589, 1602, 1615, 1629, 1644, 1660, 1687, 1705, 1718, 1746, 1759, 1801, 1815, 1830, 1847, 1860, 1873, 1886, 1929, 1965, 1979, 1995, 2010, 2067
   path_manager.py691972%131, 182–187, 217–228, 284–288, 306–309, 315, 341
   placement_manager.py45626243%195, 201, 204, 209, 258–263, 360, 370–387, 390–395, 401–434, 444, 458, 473, 490, 505, 518, 534, 540–681, 705–706, 726–751, 763–779, 792–812, 836–845, 865–874, 904, 933, 1035–1088, 1091–1115, 1151–1163, 1179–1212, 1258–1305, 1314–1347
   resource_manager.py28814151%153, 185–191, 255–258, 263, 304–312, 358–367, 370, 376, 383–452, 467, 471, 497–543, 566, 575–610, 686–693, 701–705, 720–723, 737–749, 763–765, 783–785, 812–828, 902, 905, 908, 934–940
   squad_manager.py18513328%51, 57, 60, 63, 66, 69–70, 168–170, 176–189, 216–237, 251, 273–286, 309–324, 339–353, 372–392, 395–399, 404–423, 429–440, 467–482, 496–518, 521–530
   terrain_manager.py1799249%188, 202–216, 232, 249–258, 270–273, 285, 300–303, 315, 327, 351, 363, 379–390, 441–467, 487–505, 561–581, 596–610, 623–637, 644–654
   unit_cache_manager.py1458641%160–166, 180–219, 232–238, 254–264, 275–281, 297–329, 342–351, 367–370, 386–390, 421, 459–469
   unit_memory_manager.py1778751%112–124, 172–211, 214, 239, 256–277, 293–294, 312–313, 333–337, 353–354, 370–372, 388–390, 412, 449, 492, 497–500, 521–523, 540–548, 569–589
   unit_role_manager.py862274%144–147, 161–165, 302, 377–392, 436
   warp_in_manager.py613543%84, 119–122, 125–198
TOTAL6238313650% 

Tests Skipped Failures Errors Time
204 0 💤 0 ❌ 0 🔥 2m 20s ⏱️

@raspersc2 raspersc2 merged commit 0bcc1bc into main Feb 17, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant