//-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------// public static Player MakeStartingPlayer(string name) { Player player = new Player(name); Weapon defaultWeapon = WorldInitialization.GetWeapon(WorldInitialization.ITEM_WOODEN_SWORD); player.currentWeapon = defaultWeapon; player.playerLocation = WorldInitialization.GetLocation(WorldInitialization.LOC_HOME); return(player); }
public static void ShowItemInfo(string input) { string id = input.Substring(4).Trim(); if (!int.TryParse(id, out int itemID)) { Console.WriteLine("Aucun ID d'item reconnu."); ShowPlayerWeapons(); ShowPlayerPotions(); } else { Console.WriteLine("{0} - {1}", WorldInitialization.GetItem(itemID).name, WorldInitialization.GetItem(itemID).desc); } }
public void Respawn() { GoTo(WorldInitialization.GetLocation(WorldInitialization.LOC_HOME)); FullHeal(); }