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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e0b154fe7c1d86ed183b43f3a3ee0b915b1d745ca839a86f9150d571e792864
4
- data.tar.gz: 56a466963b5fd4b8d6ad7878bad675a270b90a53caf174b6abb749a4a4265b6d
3
+ metadata.gz: 0db477a14bdf3d61b9ba5398b2b4e141832db450cabf2ba1b25c3ecbf5936b95
4
+ data.tar.gz: f8b7b955443d9233b7a05c4cabedd4cc22540996b841b3896815cb02fd8c22c1
5
5
  SHA512:
6
- metadata.gz: 6de08591f8bfd744cac376b46aeb0eb4fe8027aadb31a7d9ce9eaee1e7b030636ca9b098e76383d879cd1b9f19e72fc5e1d7f8db5161ecde98be5ea8197994ce
7
- data.tar.gz: cfc3ecab272e6157dd26661e5a1d085e9b3bd41a98e32f788eab4d1955a6c82d179387f7bb05e214ece46ce93c847522e56ece97f251e5a021c5b91243475432
6
+ metadata.gz: 8d1bea39be1caff988cea9351abef368eef22d544dfa04551b681d473e5055765fc7c347435e714b3f05fad4649ce38918b2732b04f22f88b08639e22d0ad15b
7
+ data.tar.gz: 97457f03348767c490e6386b95919d01fa2bda0859e7c6c957ef96f3f0b00b76d54d82f5725ced238f6a62901b9bfdd27197e2230bb36d9736bb58c10d6a4ba1
@@ -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=Energy,2=Life,3=Shields one of Api::DebugSetUnitValue::UnitValue::*
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:)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Sc2
2
2
  # gem version
3
3
  # @return [String]
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
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=Energy,2=Life,3=Shields one of Api::DebugSetUnitValue::UnitValue::*
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=Energy,2=Life,3=Shields one of Api::DebugSetUnitValue::UnitValue::*
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.1
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-11 00:00:00.000000000 Z
10
+ date: 2025-01-13 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: async