sv443.js
Advanced tools
Comparing version 1.0.1 to 1.0.2
33
index.js
@@ -29,4 +29,37 @@ class Sv { | ||
subGay(a) { | ||
return this.gay -= a | ||
} | ||
subHeight(a) { | ||
return this.height -= a | ||
} | ||
subWeight(a) { | ||
return this.weight -= a | ||
} | ||
subAge(a) { | ||
return this.age -= a | ||
} | ||
setGay(a) { | ||
return this.gay = a | ||
} | ||
setHeight(a) { | ||
return this.height = a | ||
} | ||
setWeight(a) { | ||
return this.weight = a | ||
} | ||
setAge(a) { | ||
return this.age = a | ||
} | ||
} | ||
module.exports.Sv = Sv |
{ | ||
"name": "sv443.js", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Create your own Sv!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,2 +34,4 @@ # sv443.js is a node package that allows you to create your very own Sv! | ||
console.log(succ.addAge(4)) // expected output: 20 | ||
console.log(succ.setAge(16)) // expected output: 16 | ||
console.log(succ.subAge(4)) // expected output: 12 | ||
@@ -39,2 +41,4 @@ // height manipulation | ||
console.log(succ.addHeight(4)) // expected output: 174 | ||
console.log(succ.setHeight(170)) // expected output: 170 | ||
console.log(succ.subHeight(4)) // expected output: 166 | ||
@@ -44,2 +48,4 @@ // weight manipulation | ||
console.log(succ.addWeight(5)) // expected output: 69 ( ͡° ͜ʖ ͡°) | ||
console.log(succ.setWeight(64)) // expected output: 64 | ||
console.log(succ.subWeight(5)) // expected output: 59 | ||
@@ -49,2 +55,4 @@ //gay level manipulation | ||
console.log(succ.addGay(4)) // expected output: 104 | ||
console.log(succ.setGay(100)) // expected output: 100 | ||
console.log(succ.subGay(4)) // expected output: 96 | ||
``` |
@@ -9,2 +9,4 @@ const sv = require('./index') | ||
console.log(succ.age) | ||
console.log(succ.age) | ||
console.log(succ.setAge(20)) |
3439
52
54