コード例 #1
0
        /// <inheritdoc />
        public virtual string GetRawObjectInformation()
        {
            ICoreTranslation displayName = this.TranslationHelper.Get($"item.{this.RawName}").WithDefault($"item.{this.RawName}");
            ICoreTranslation description = this.TranslationHelper.Get($"item.{this.RawName}.description").WithDefault("No description available.");

            return($"{displayName}/{this.Cost}/{this.Edibility}/{this.Category}/{displayName}/{description}");
        }
コード例 #2
0
        public string GetRawWeaponInformation()
        {
            ICoreTranslation displayName   = this.TranslationHelper.Get($"item.{this.RawName}").WithDefault($"item.{this.RawName}");
            ICoreTranslation description   = this.TranslationHelper.Get($"item.{this.RawName}.description").WithDefault("No description available.");
            const int        minMineLevel  = -1; // TODO
            const int        someMineThing = -1; // TODO: Utility.getUncommonItemForThisMineLevel

            return(string.Join("/", displayName, description, this.MinDamage, this.MaxDamage, this.Knockback, this.Speed, this.Precision, this.Defense, (int)this.Type, minMineLevel, someMineThing, this.AreaOfEffect, this.CritChance, this.CritMultiplier));
        }