assets/vendor/screw-unit/example/models/man.js in screw_server-0.1.7 vs assets/vendor/screw-unit/example/models/man.js in screw_server-0.1.8
- old
+ new
@@ -1,7 +1,7 @@
function Man(options) {
var luck = options.luck;
-
+
this.decrement_luck = function(delta) {
luck = Math.max(0, luck - delta);
};
this.luck = function() {
return luck;
\ No newline at end of file