Passage: Combat in Final Fantasy is menu-based: the player selects an action from a list of options such as Attack, Magic, and Item. Battles are turn-based and continue until either side flees or is defeated. If the player's party wins, each character will gain experience and Gil; if it flees, it will be returned to the map screen; and if every character in the party dies, the game will be over and all unsaved progress will be lost. Final Fantasy was the first game to show the player's characters on the right side of the screen and the enemies on the left side of the screen, as opposed to a first-person view.The player begins the game by choosing four characters to form a party and is locked into that choice for the duration of the game. Each character has an "occupation", or character class, with different attributes and abilities that are either innate or can be acquired. There are six classes: Fighter, Thief, Black Belt, Red Mage, White Mage, and Black Mage. Later in the game, the player has the option to have each character undergo a "class upgrade"; whereby their sprite portraits mature, and some classes gain the ability to use weapons and magic that they previously could not use. The game contains a variety of weapons, armor, and items that can be bought or found to make the characters more powerful in combat. Each character has eight inventory slots, with four to hold weapons and four to hold armor. Each character class has restrictions on what weapons and armor it may use. Some weapons and armor are magical; if used during combat, they will cast spells. Other magical artifacts provide protection, such as from certain spells. At shops, the characters can buy items to help themselves recover while they are traveling. Items available include potions, which heal the characters or remove ailments like poison or petrification; Tents and Cabins, which can be used on the world map to heal the player and optionally save the game; and Houses, which also recovers the party's magic after saving. Special items may be...

Question: What factors affect weapon use in the game?
character class