sc2ai 0.4.0 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0b6225d7a28ee6656744623ee50db7cfa997712ecbe357a3e39f903e4023c0f
4
- data.tar.gz: 60f588720e52e4881a10d0b232754ca0b532aa44b90810f650a156e265c309ba
3
+ metadata.gz: 0db477a14bdf3d61b9ba5398b2b4e141832db450cabf2ba1b25c3ecbf5936b95
4
+ data.tar.gz: f8b7b955443d9233b7a05c4cabedd4cc22540996b841b3896815cb02fd8c22c1
5
5
  SHA512:
6
- metadata.gz: 65249c7a5f036e9d15286dc3d851ec3b9ebf2a50e1978d1d305476d9e0d69597e0a97504af98b387b718cf5bc2aed581b97dae51b202f10fe174c8be3e9d03d1
7
- data.tar.gz: 2e746b39d4dc86e257f28905ee2085e92a980aa51035dc75051b61830f9bcd5e197e0377c7ca4265a59e843fd339bff454c522c212480bfe93f6c9525599e8ed
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.0"
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.0
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
@@ -107,6 +107,48 @@ dependencies:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
109
  version: '1.0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: logger
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ type: :runtime
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ - !ruby/object:Gem::Dependency
125
+ name: fiddle
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ type: :runtime
132
+ prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ - !ruby/object:Gem::Dependency
139
+ name: reline
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ type: :runtime
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
110
152
  - !ruby/object:Gem::Dependency
111
153
  name: sc2ai-kdtree
112
154
  requirement: !ruby/object:Gem::Requirement