about summary refs log tree commit diff stats
path: root/data/maps/the_hinterlands
Commit message (Collapse)AuthorAgeFilesLines
* Added display names to portsStar Rauchenberger2025-09-281-0/+2
|
* [Data] Fixed some stuff for worldport shuffleStar Rauchenberger2025-09-221-2/+2
|
* [Data] Annotate shuffleable portsStar Rauchenberger2025-09-211-2/+4
|
* Changed how door location names are formattedStar Rauchenberger2025-08-301-1/+0
| | | | | | | | | | | | | | | | | | STANDARD type doors with at most four panels in the same map area and no other trigger objects will have their location names generated from the names of the panels used to open the door, similar to Lingo 1. Other door types will use the door's name. In either case, the name can be overridden using the new location_name field. Rooms can also set a panel_display_name field, which will be used in location names for doors, and is used to group panels into areas. Panels themselves can set display names, which differentiates their locations from other panels in the same area. Many maps were updated for this, but note that the_symbolic and the_unyielding have validator failures because of duplicate panel names. This won't matter until panelsanity is implemented.
* Maps have display names nowStar Rauchenberger2025-08-201-0/+1
| | | | Also added endings to the apworld.
* Validate that nodes in game files are usedStar Rauchenberger2025-08-181-0/+32
| | | | You can now also list out nodes that you are explicitly not mapping out. The current state of the repo does produce some warnings when the validator is run and they're either endings, paintings that I'm not sure what to do with yet, and weird proxy stuff I'm not sure how to handle yet.
* Added the_hinterlandsStar Rauchenberger2025-08-141-0/+13
} /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
module Pokeviewer
  class Item < ApplicationRecord
    validates :name, presence: true

    belongs_to :move, optional: true
    validates :move, presence: true, if: :tm?

    validates :rs_description, presence: true, unless: :tm?
    validates :frlg_description, presence: true, unless: :tm?

    def description(game)
      if game == :emerald
        if not emerald_description.nil?
          emerald_description
        elsif not rs_description.nil?
          rs_description
        else
          move.description game
        end
      elsif game == :firered or game == :leafgreen
        if not frlg_description.nil?
          frlg_description
        else
          move.description game
        end
      else
        if not rs_description.nil?
          rs_description
        else
          move.description game
        end
      end
    end

    def icon_path
      if tm?
        "pokeviewer/items/tms/#{move.move_type}.png"
      else
        "pokeviewer/items/#{id}.png"
      end
    end
  end
end