mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Misc tidying
This commit is contained in:
@@ -359,7 +359,7 @@ class CallbackWrapper
|
||||
def execute(given_block = nil, *args)
|
||||
execute_block = given_block || @code_block
|
||||
@params.each do |key, value|
|
||||
args.instance_variable_set("@#{key.to_s}", value)
|
||||
args.instance_variable_set("@#{key}", value)
|
||||
end
|
||||
args.instance_eval(&execute_block)
|
||||
end
|
||||
|
||||
@@ -202,7 +202,7 @@ module SaveData
|
||||
validate id => Symbol
|
||||
@values.delete_if { |value| value.id == id }
|
||||
end
|
||||
|
||||
|
||||
# @param save_data [Hash] save data to validate
|
||||
# @return [Boolean] whether the given save data is valid
|
||||
def self.valid?(save_data)
|
||||
|
||||
@@ -474,7 +474,7 @@ class Game_Player < Game_Character
|
||||
if !@moved_last_frame || @stopped_last_frame # Started a new step
|
||||
if pbTerrainTag.ice
|
||||
set_movement_type(:ice_sliding)
|
||||
else#if !@move_route_forcing
|
||||
else
|
||||
faster = can_run?
|
||||
if $PokemonGlobal&.diving
|
||||
set_movement_type((faster) ? :diving_fast : :diving)
|
||||
|
||||
@@ -32,10 +32,10 @@ EventHandlers.add(:on_wild_pokemon_created, :level_depends_on_party,
|
||||
# Note that you can only modify a partner trainer's Pokémon, and not the trainer
|
||||
# themselves nor their items this way, as those are generated from scratch
|
||||
# before each battle.
|
||||
#EventHandlers.add(:on_trainer_load, :put_a_name_here,
|
||||
# proc { |trainer|
|
||||
# if trainer # An NPCTrainer object containing party/items/lose text, etc.
|
||||
# YOUR CODE HERE
|
||||
# end
|
||||
# }
|
||||
#)
|
||||
# EventHandlers.add(:on_trainer_load, :put_a_name_here,
|
||||
# proc { |trainer|
|
||||
# if trainer # An NPCTrainer object containing party/items/lose text, etc.
|
||||
# YOUR CODE HERE
|
||||
# end
|
||||
# }
|
||||
# )
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
# TODO: Add an information window with details of the person in a phone call.
|
||||
# Make this work with common event calls (create and dispose the info
|
||||
# window in start_message and end_message).
|
||||
# TODO: Look at the "ready to rematch" timers to see if they can be improved?
|
||||
# Should they be limited to one trainer becoming ready every ~5 minutes?
|
||||
# TODO: See if incoming phone calls can be made optional somehow. Maybe just
|
||||
# interrupt as normal with the start of the call and ask if the player
|
||||
# wants to answer? Wait for a couple of seconds before asking to make sure
|
||||
# the player doesn't accidentally skip/answer a call they didn't want to.
|
||||
# TODO: Add a Debug way of upgrading old phone script calls to new ones, or at
|
||||
# least to find events using old phone scripts for the dev to update.
|
||||
# TODO: More Debug control over contacts (changing their "time to rebattle",
|
||||
# unhiding hidden contacts, etc.) and the phone (time until next call).
|
||||
|
||||
# TODO: Add calling a contact at a particular time forcing rematch readiness.
|
||||
# Add trainer comments for this.
|
||||
@@ -8,10 +18,6 @@
|
||||
# requiring the player to call them at their particular time of day/week.
|
||||
# TODO: Be able to put the Phone on silent mode (prevent all phone calls from
|
||||
# trainers, but allow scripted calls as normal).
|
||||
|
||||
# TODO: Better messages, more customisation of messages.
|
||||
# TODO: Add a Debug way of upgrading old phone script calls to new ones, or at
|
||||
# least to find events using old phone scripts for the dev to update.
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
@@ -250,7 +256,7 @@ class Phone
|
||||
attr_accessor :trainer_type, :start_version, :versions_count, :version
|
||||
attr_accessor :time_to_ready, :rematch_flag, :variant_beaten
|
||||
attr_accessor :common_event_id
|
||||
attr_accessor :visible
|
||||
attr_reader :visible
|
||||
|
||||
# Map ID, event ID, trainer type, name, versions count = 1, start version = 0
|
||||
# Map ID, name, common event ID
|
||||
|
||||
@@ -506,7 +506,7 @@ module Compiler
|
||||
end
|
||||
end
|
||||
# Compile the trainer comments
|
||||
rewriteComments = true #false # You can change this
|
||||
rewriteComments = false # You can change this
|
||||
battles = []
|
||||
trtype = nil
|
||||
trname = nil
|
||||
|
||||
Reference in New Issue
Block a user