Data/OverworldShadows.rb
# Determines whether or not an event should be given a shadow.

Determines whether or not an event should be given a shadow.
Determines whether or not an event should be given a shadow .
def pbShouldGetShadow?(event)
  return true if event.is_a?(Game_Player) 
  page = pbGetActiveEventPage(event)
  return false unless page
  comments = page.list.select { |e| e.code == 108 || e.code == 408 }.map do |e|
    e.parameters.join
  end
  Always_Give_Shadow_If_Event_Name_Has.each do |e|
    name = event.name.clone
    unless Case_Sensitive
      e.downcase!
      name.downcase!
    end
    return true if name.include?(e) || comments.any? { |c| c.include?(e) }
  end
  No_Shadow_If_Event_Name_Has.each do |e|
    name = event.name.clone
    unless Case_Sensitive
      e.downcase!
      name.downcase!
    end
    return false if name.include?(e) || comments.any? { |c| c.include?(e) }
  end
  return true
end
def pbShouldGetShadow? ( event ) return true if event . is_a? ( Game_Player ) page = pbGetActiveEventPage ( event ) return false unless page comments = page . list . select { | e | e . code == 108 || e . code == 408 } . map do | e | e . parameters . join end Always_Give_Shadow_If_Event_Name_Has . each do | e | name = event . name . clone unless Case_Sensitive e . downcase! name . downcase! end return true if name . include? ( e ) || comments . any? { | c | c . include? ( e ) } end No_Shadow_If_Event_Name_Has . each do | e | name = event . name . clone unless Case_Sensitive e . downcase! name . downcase! end return false if name . include? ( e ) || comments . any? { | c | c . include? ( e ) } end return true end
Determines whether or not an event should be given a shadow.
Determines whether or not an event should be given a shadow .
# The player will always have a shadow

event
<not_specific>