This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd HABITRPG_SHARED_LOCATION | |
$ npm link | |
$ cd HABITRPG_LOCATION | |
$ rm -rf node_modules/habitrpg-shared | |
$ npm link habitrpg-shared |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/controllers/challenges.js b/src/controllers/challenges.js | |
index 9545f4a..6c74de5 100644 | |
--- a/src/controllers/challenges.js | |
+++ b/src/controllers/challenges.js | |
@@ -105,20 +105,26 @@ api.csv = function(req, res, next) { | |
api.getMember = function(req, res, next) { | |
var cid = req.params.cid, uid = req.params.uid; | |
- User.findById(uid) | |
- .select('profile.name habits dailys todos rewards') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/api.mocha.js b/test/api.mocha.js | |
index 9b69fd4..0468fea 100644 | |
--- a/test/api.mocha.js | |
+++ b/test/api.mocha.js | |
@@ -79,7 +79,7 @@ describe('API', function () { | |
before(function (done) { | |
require('../src/server'); // start the server | |
// then wait for it to do it's thing. TODO make a cb-compatible export of server | |
- setTimeout(done, 2000); | |
+ setTimeout(done, 10000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/script/index.coffee b/script/index.coffee | |
index a5d97bf..55edff6 100644 | |
--- a/script/index.coffee | |
+++ b/script/index.coffee | |
@@ -1144,14 +1144,8 @@ api.wrap = (user, main=true) -> | |
user.stats.mp = user._statsComputed.maxMP if user.stats.mp > user._statsComputed.maxMP | |
# "Perfect Day" achievement for perfect-days | |
- lvlDiv2 = Math.ceil(user.stats.lvl/2) | |
- clearBuffs = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/script/content.coffee b/script/content.coffee | |
index 9914d69..1dd6e7e 100644 | |
--- a/script/content.coffee | |
+++ b/script/content.coffee | |
@@ -63,10 +63,10 @@ gear = | |
3: text: "Mustaine's Milestone Mashing Morning Star", notes:"Meetings, monsters, malaise: managed! Mash! Increases STR, INT, and CON by 17 each.", str: 17, int: 17, con: 17, value:200, canOwn: ((u)-> +u.backer?.tier >= 300) | |
# Winter event gear | |
- yeti: event: events.winter, canOwn: ((u)->u.stats.class is 'warrior' ), text: "Yeti-Tamer Spear", notes:'Limited Edition 2013 Winter Gear! This spear allows its user to command any yeti. Increases STR by 15.', str: 15, value:90 | |
- ski: event: events.winter, canOwn: ((u)->u.stats.class is 'rogue' ), text: "Ski-sassin Pole", notes: 'Limited Edition 2013 Winter Gear! A weapon capable of destroying hordes of enemies! It also helps the user make very nice parallel turns. Increases STR by 8.', str: 8, value: 90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost:habitrpg-shared lefnire$ coffee ./tests/simulations/passive_active_attrs.coffee | |
================================================ | |
New Simulation | |
================================================ | |
[LEVEL 1] (1 points in every attr) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Modified script/index.coffee | |
diff --git a/script/index.coffee b/script/index.coffee | |
index bbed240..be8c203 100644 | |
--- a/script/index.coffee | |
+++ b/script/index.coffee | |
@@ -774,7 +774,7 @@ api.wrap = (user) -> | |
when 'todo' | |
if options.cron | |
calculateDelta() | |
- #don't touch stats on cron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/script/index.coffee b/script/index.coffee | |
index 20e234e..a874ff2 100644 | |
--- a/script/index.coffee | |
+++ b/script/index.coffee | |
@@ -688,14 +688,14 @@ api.wrap = (user) -> | |
# Exp Modifier | |
# ===== Intelligence ===== | |
# TODO Increases Experience gain by .2% per point. | |
- intMod = 1 + (user._statsComputed.int * .075) | |
+ intMod = 1 + (user._statsComputed.int * .025) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
localhost:habitrpg-shared lefnire$ coffee ./tests/math_samples.coffee | |
lvl exp hp gp task.value | |
1 5/150 50 1.06 1.16 (↑ Δ1.00) | |
1 5/150 49.1 1.06 -1.00 (↓ Δ-1.00) | |
[Wizard] | |
fireball: task.value=0.0075 hp=0.0075 | |
mpheal: mp=76 (from 100) | |
earth: buffs.int=0.2 | |
frost: - | |
[Warrior] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[LEVEL 1] (1 points in every attr) | |
[task.value = -5 (red)] | |
direction expΔ hpΔ gpΔ task.valΔ task.valΔ bonus | |
↑ 7/150 0.0 1.2 1.1 0.1 | |
↓ 0/150 2.0 0.0 -1.1 0.0 | |
- [Wizard] fireball(task.valΔ:0.0 exp:2.5) | mpheal(mp:1) | earth(buffs.int:1) | frost(N/A) | |
- [Warrior] smash(task.valΔ:0.3) | defensiveStance(buffs.con:2) | valorousPresence(buffs.str:2) | intimidate(buffs.con:1) | |
- [Rogue] pickPocket(gp:1.1) | backStab(task.valΔ:0.0 exp:1.0 gp:1.0) | toolsOfTrade(buffs.per:1) | stealth(avoiding 1 tasks) |