Add description field

This commit is contained in:
Skylar Grant 2023-08-08 16:51:22 -04:00
parent 643eb0caa0
commit 32ba973d6a

View File

@ -57,6 +57,7 @@ module.exports = {
this.type = ""; this.type = "";
this.effects = ""; this.effects = "";
this.rating = "0.0"; this.rating = "0.0";
this.description = "";
} }
// Initial Strain configuration // Initial Strain configuration
@ -67,7 +68,8 @@ module.exports = {
details: { details: {
type: String, type: String,
effects: String, effects: String,
rating: String rating: String,
description: String
} }
*/ */
@ -81,6 +83,7 @@ module.exports = {
this.type = typeof details.type === 'string' ? details.type : this.type; this.type = typeof details.type === 'string' ? details.type : this.type;
this.effects = typeof details.effects === 'string' ? details.effects : this.effects; this.effects = typeof details.effects === 'string' ? details.effects : this.effects;
this.rating = typeof details.rating === 'string' ? details.rating : this.rating; this.rating = typeof details.rating === 'string' ? details.rating : this.rating;
this.description = typeof details.description === 'string' ? details.description : this.description;
return this; // For chaining return this; // For chaining