Commit Graph
24 Commits
Author SHA1 Message Date
Joni Savolainen 767a47d90f Fix Bitmap#draw_text override not accepting Rect argument (#150) 2022-01-09 21:22:40 +00:00
Joni Savolainen aef95067f8 Fix pbSave's incorrect deprecation message (#110) 2021-05-20 19:12:01 +01:00
Joni Savolainen 47b164f0ab Module#deprecated_method_alias (#101)
* Add Module#deprecated_method_alias
* Use deprecated_method_alias in 010_Pokemon_Deprecated.rb
* Use deprecated_method_alias on the rest of Pokemon methods
Also, use deprecate_constant on MAX_POKEMON_NAME_SIZE
* Use deprecated_method_alias on PlayerTrainer methods
* Ensure aliased method exists in deprecated_method_alias
2021-03-02 20:16:22 +00:00
Joni Savolainen 9c2b6e943b Save data rewrite & Game module (#91) 2021-02-28 21:26:16 +00:00
Joni Savolainen 4e43a06f1b Remove unnecessary utilities (#99)
- Comparable.clamp is already defined
- Boolean class does not exist
- String#start_with? already exists
- String#end_with? already exists
- String#bytesize already exists
- String#capitalize already exists
- Integer#digits already exists
- Array#first and Array#last already exist
- Array#shuffle already exists

Ruby's own Integer#digits returns an array with the least significant digit as the first array element. That means that the method's only usage has to be appended with a call to Array#reverse.
2021-02-26 19:38:27 +00:00
Joni Savolainen d6b80118c9 Remove all usage of missing doubleclick? method (#98) 2021-02-26 19:28:34 +00:00
Joni Savolainen c16311326c Fix a crash in PokeBattle_Trainer.copy (#95) 2021-02-20 15:51:12 +00:00
Joni Savolainen 923844fdc7 Remove SpriteWindowCursorRect & fix WindowCursorRect (#85)
* Remove SpriteWindowCursorRect
* Fix WindowCursorRect
- Use super
- Don't overwrite getters for x, y etc.
- Use self.x instead of @x, etc.
* Fix needs_update? using zeroes
* Rename WindowCursorRect#isEmpty? to #empty?
2021-02-01 19:57:54 +00:00
Joni Savolainen 34e362a59b Remove all Thread.critical usage 2021-01-18 08:19:42 +02:00
Joni Savolainen 20a60bfe32 Add user-specific folders and files to .gitignore (#78) 2020-12-31 14:27:57 +00:00
jonisavo 47a1cb5462 Clone the Owner object in Pokemon#clone 2020-10-16 19:49:47 +03:00
jonisavo fc7e5fbfb4 New file for Pokemon::Owner, 006_Pokemon_Owner.rb 2020-10-16 16:22:24 +03:00
jonisavo bc9b1dc919 Make Pokemon.new accept Owner objects
Also, default the owner argument to $Trainer
2020-10-16 15:00:01 +03:00
jonisavo ad1487be1d Remove all usage of the newly deprecated methods 2020-10-16 14:32:20 +03:00
jonisavo b9801ef171 Deprecate Pokemon#language and Pokemon#language= 2020-10-16 14:11:09 +03:00
jonisavo 0122ccadcf Deprecate Pokemon#otgender and Pokemon#otgender= 2020-10-16 14:07:09 +03:00
jonisavo 71c7f9ce76 Add Pokemon::Owner::new_foreign 2020-10-16 12:32:56 +03:00
jonisavo 2b2df4ae8f Use new Pokemon::Owner methods 2020-10-16 12:19:15 +03:00
jonisavo 66c255546d Deprecate Pokemon#ot and Pokemon#ot= 2020-10-16 12:18:41 +03:00
jonisavo 89b490736d Use Kernel.validate 2020-10-16 11:15:26 +03:00
jonisavo 5a3879f294 Merge remote-tracking branch 'upstream/refactor' into pokemon-owner 2020-10-16 11:06:32 +03:00
Joni Savolainen d860b703b1 Added Kernel.validate (#41) 2020-10-15 20:31:57 +01:00
Joni Savolainen ae0e13c228 Deprecate Pokemon#trainerID and Pokemon#publicID 2020-10-13 20:55:15 +03:00
Joni Savolainen c397aeba4e Setters for Pokemon::Owner 2020-10-13 20:49:50 +03:00