Add description field
This commit is contained in:
parent
643eb0caa0
commit
32ba973d6a
@ -57,6 +57,7 @@ module.exports = {
|
||||
this.type = "";
|
||||
this.effects = "";
|
||||
this.rating = "0.0";
|
||||
this.description = "";
|
||||
}
|
||||
|
||||
// Initial Strain configuration
|
||||
@ -67,7 +68,8 @@ module.exports = {
|
||||
details: {
|
||||
type: 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.effects = typeof details.effects === 'string' ? details.effects : this.effects;
|
||||
this.rating = typeof details.rating === 'string' ? details.rating : this.rating;
|
||||
this.description = typeof details.description === 'string' ? details.description : this.description;
|
||||
|
||||
|
||||
return this; // For chaining
|
||||
|
Loading…
Reference in New Issue
Block a user