public RPGItem(IRPGItem source) { ItemName = source.GetName(); BaseDmg = source.GetBaseDmg(); BaseDef = source.GetBaseDef(); UsesRemaining = source.GetDurability(); ColorSns = source.GetPlayerSense(PlayerSenseType.COLOR); HeatEmission = source.GetTemp(); Enchantment = source.GetEnchantment(); MagicSns = source.GetPlayerSense(PlayerSenseType.MAGIC); NoiseSns = source.GetPlayerSense(PlayerSenseType.NOISE); SmellSns = source.GetPlayerSense(PlayerSenseType.SMELL); Depth = source.GetDepth(); Rarity = source.GetRarity(); }
public string TakeAllRoomItems() { var items = _currentRoom.GetItems(); if (items.Count == 0) { return("Ihr könnt keine Gegenstände sehen."); } string result = ""; for (int i = items.Count - 1; i >= 0; i--) { IRPGItem item = items[i]; result += "<br/>1 " + item.GetName(); _player.inventory.Add(new RPGItem(item)); _currentRoom.GetItems().Remove(item); } return("Ihr nehmt die folgenden Gegenstände:<br/>" + result); }