ruby_gs 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 779a648e0548a042c7e9f2136d64e6fc939bf555
4
- data.tar.gz: 2ed5de25d9bf99b33185bf3c86774b9cd2175577
3
+ metadata.gz: 9f675b3ef2646a971fa964f4041bb770884c2b8e
4
+ data.tar.gz: 25bfcadd155775db5694bfe758751c33cd362765
5
5
  SHA512:
6
- metadata.gz: 8b917c990ffcab122a382fee81640eefdb3291505ae4bb27ad8365699fae27ec8dcbeafdf64bc61ad3318fa986260ed7e47dfa220ace12c8fb67ce4a648dd566
7
- data.tar.gz: fa2fd827df04bbfd115d45e42072d131afeb7cee5a12a696094143ce8f2ac6f29a939cbe62886e32b77068a71721e5f00c918dee124d9eecc05da812ddffcdce
6
+ metadata.gz: 6bda83e4f5646632d8b90d87c397ecb8b15c40f4580608c2b06bae5b84b27b7fd309f81f9e669239bdb15a9bfa43852d2f55fd381cec2fe3e8d0b4cdfebb5cbc
7
+ data.tar.gz: c35bf4b0f206f65df10f6f31944d59bf17f76e67c884d612d1e9f5e1e6e6694fae10cf0f6e6b7446a168a8c02a6a89288d3421386951310b0874324fc44a75c2
@@ -64,13 +64,14 @@ module RubyGS
64
64
  @save.team.species_list[slot].assign species
65
65
  end
66
66
 
67
- def set_team_egg slot
68
- return if !(0..5).include? slot
67
+ def set_team_egg slot, egg_cycles
68
+ raise "slot index must be between 0 and 5, inclusive" if !(0..5).include? slot
69
69
  @save.team.species_list[slot].assign 0xFD
70
+ @save.team.pokemon[slot].happiness =
70
71
  end
71
72
 
72
73
  def hatch_team_egg slot
73
- return if !(0..5).include? slot
74
+ raise "slot index must be between 0 and 5, inclusive" if !(0..5).include? slot
74
75
  @save.team.species_list[slot].assign @save.team.pokemon[slot].species
75
76
  end
76
77
 
@@ -1,3 +1,3 @@
1
1
  module RubyGS
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conrad King
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2015-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -73,14 +73,6 @@ files:
73
73
  - lib/ruby_gs.rb
74
74
  - lib/ruby_gs/save_file_reader.rb
75
75
  - lib/ruby_gs/structs.rb
76
- - lib/ruby_gs/structs/.caught_data.rb.swp
77
- - lib/ruby_gs/structs/.item_entry.rb.swp
78
- - lib/ruby_gs/structs/.iv_data.rb.swp
79
- - lib/ruby_gs/structs/.name_text.rb.swp
80
- - lib/ruby_gs/structs/.party_pokemon.rb.swp
81
- - lib/ruby_gs/structs/.pp_data.rb.swp
82
- - lib/ruby_gs/structs/.save_file.rb.swp
83
- - lib/ruby_gs/structs/.team.rb.swp
84
76
  - lib/ruby_gs/structs/caught_data.rb
85
77
  - lib/ruby_gs/structs/item_entry.rb
86
78
  - lib/ruby_gs/structs/iv_data.rb
@@ -112,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
104
  version: '0'
113
105
  requirements: []
114
106
  rubyforge_project:
115
- rubygems_version: 2.4.6
107
+ rubygems_version: 2.4.8
116
108
  signing_key:
117
109
  specification_version: 4
118
110
  summary: Allows viewing and editing of Pokemon G/S/C save files.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file