openra 1.8.0 → 1.8.1

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: bdebe6f1d4e30d7cefc66638f4f88f853f31acd04b371e367af70b7e23ccc83b
4
- data.tar.gz: c61ed7c050d13664ef650d4727c904ecd1814ce789534b93bec693a3863dec94
3
+ metadata.gz: 4cfff6bc6fcdee2c6e36d65bef3937bcf2aa4198e1ebdd0a8ec32e582722a1b4
4
+ data.tar.gz: 79223a7df569fc9281761e77e0ce53c28665b24cf37216bdf39264e873f64b37
5
5
  SHA512:
6
- metadata.gz: 5b70e814b16cf0d65bad4b6482388753f0f4104c03757589df219e739ef713c156ac306a3fe97a7e06662e19ac808c49c3eee7ad086210f386595fabdbe909bd
7
- data.tar.gz: 6e80c9a0b8c1c486b6159ca6b58323ca4114ce8cebaca13cc66b6d73a168cfe8a8ff3296f49fe782ddd8055799cbf1d1dc0237bd1a9066320fa6b7ae22837283
6
+ metadata.gz: 64c38c423dd054f8dd4df6e71240329d28fd1fb2c301eb13a9ebf3022f8594d11e0b93666d8cd934127f354fdc53bb71c450f0e9a06cd37b9649759eaa52c47e
7
+ data.tar.gz: 3ce0518fc30b657d975ebc40993321e0b3692747301f21f227eaf1b35df4325206924bbf7bd804a22d51846f9e8888721fcec274dc9015acc25bd4858c65c153
data/CHANGELOG.md CHANGED
@@ -1,6 +1,14 @@
1
1
  ## Unreleased
2
2
 
3
- [Compare v1.8.0...HEAD](https://github.com/AMHOL/openra-ruby/compare/v1.8.0...HEAD)
3
+ [Compare v1.8.1...HEAD](https://github.com/AMHOL/openra-ruby/compare/v1.8.1...HEAD)
4
+
5
+ ## v1.8.1
6
+
7
+ ### Updates
8
+
9
+ * [replay-data] Update support powers to include game time and target positions
10
+
11
+ [Compare v1.8.0...v1.8.1](https://github.com/AMHOL/openra-ruby/compare/v1.8.0...v1.8.1)
4
12
 
5
13
  ## v1.8.0
6
14
 
@@ -74,7 +74,7 @@ module Openra
74
74
  is_player: !player.nil?,
75
75
  is_winner: player&.outcome == 'Won',
76
76
  build: [],
77
- support_powers: support_powers.values.product([0]).to_h
77
+ support_powers: []
78
78
  }
79
79
  end
80
80
 
@@ -107,7 +107,12 @@ module Openra
107
107
  candidate[:index] == order.client_index.to_s
108
108
  end
109
109
 
110
- client_hash[:support_powers][key] += 1
110
+ client_hash[:support_powers] << {
111
+ type: key,
112
+ game_time: time(order.frame * sync_info.global_settings.frametime_multiplier),
113
+ placement: order.target_pos.to_i,
114
+ extra_placement: order.extra_pos.to_i
115
+ }
111
116
  when 'PlaceBuilding'
112
117
  client_hash = data[:clients].find do |candidate|
113
118
  candidate[:index] == order.client_index.to_s
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Openra
4
- VERSION = '1.8.0'.freeze
4
+ VERSION = '1.8.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Holland