sc2ai 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sc2ai/player/debug.rb +1 -1
- data/lib/sc2ai/player/geo.rb +1 -0
- data/lib/sc2ai/version.rb +1 -1
- data/sig/sc2ai.rbs +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0db477a14bdf3d61b9ba5398b2b4e141832db450cabf2ba1b25c3ecbf5936b95
|
4
|
+
data.tar.gz: f8b7b955443d9233b7a05c4cabedd4cc22540996b841b3896815cb02fd8c22c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d1bea39be1caff988cea9351abef368eef22d544dfa04551b681d473e5055765fc7c347435e714b3f05fad4649ce38918b2732b04f22f88b08639e22d0ad15b
|
7
|
+
data.tar.gz: 97457f03348767c490e6386b95919d01fa2bda0859e7c6c957ef96f3f0b00b76d54d82f5725ced238f6a62901b9bfdd27197e2230bb36d9736bb58c10d6a4ba1
|
data/lib/sc2ai/player/debug.rb
CHANGED
@@ -273,7 +273,7 @@ module Sc2
|
|
273
273
|
|
274
274
|
# Sets unit_value Energy, Life or Shields for a specific unit tag to given value
|
275
275
|
# @param unit_tag [Integer]
|
276
|
-
# @param unit_value [Integer] 1=
|
276
|
+
# @param unit_value [Integer] 1=ENERGY,2=LIFE,3=SHIELDS one of Api::DebugSetUnitValue::UnitValue::*
|
277
277
|
# @param value [Float] the value which the attribute will be set to
|
278
278
|
# @return [void]
|
279
279
|
def debug_set_unit_value(unit_tag:, unit_value:, value:)
|
data/lib/sc2ai/player/geo.rb
CHANGED
@@ -570,6 +570,7 @@ module Sc2
|
|
570
570
|
|
571
571
|
i += 1
|
572
572
|
end
|
573
|
+
next if possible_points.empty?
|
573
574
|
# Choose best fitting point
|
574
575
|
best_point = possible_points.keys[possible_points.values.find_index(possible_points.values.min)]
|
575
576
|
@expansions[best_point.to_p2d] = UnitGroup.new(clustered_resources)
|
data/lib/sc2ai/version.rb
CHANGED
data/sig/sc2ai.rbs
CHANGED
@@ -728,7 +728,7 @@ module Sc2
|
|
728
728
|
#
|
729
729
|
# _@param_ `unit_tag`
|
730
730
|
#
|
731
|
-
# _@param_ `unit_value` — 1=
|
731
|
+
# _@param_ `unit_value` — 1=ENERGY,2=LIFE,3=SHIELDS one of Api::DebugSetUnitValue::UnitValue::*
|
732
732
|
#
|
733
733
|
# _@param_ `value` — the value which the attribute will be set to
|
734
734
|
def debug_set_unit_value: (unit_tag: Integer, unit_value: Integer, value: Float) -> void
|
@@ -1782,7 +1782,7 @@ module Sc2
|
|
1782
1782
|
#
|
1783
1783
|
# _@param_ `unit_tag`
|
1784
1784
|
#
|
1785
|
-
# _@param_ `unit_value` — 1=
|
1785
|
+
# _@param_ `unit_value` — 1=ENERGY,2=LIFE,3=SHIELDS one of Api::DebugSetUnitValue::UnitValue::*
|
1786
1786
|
#
|
1787
1787
|
# _@param_ `value` — the value which the attribute will be set to
|
1788
1788
|
def debug_set_unit_value: (unit_tag: Integer, unit_value: Integer, value: Float) -> void
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sc2ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dyson Returns
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-01-
|
10
|
+
date: 2025-01-13 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: async
|