No description
Find a file
Sabe Jones a770d0c72f fix(checklists): Make checklist To-Do behavior more intuitive
Previously, all To-Do scoring was multiplied by the length of the checklist, including cron "reddening" and ultimate scoring. The checkboxes themselves only affected MP bonuses. Now, checklist tasks redden at the same rate as any other task, and the score multiplier only applies to checklist items that have actually been accomplished when the user concludes the overall To-Do.

Fixes HabitRPG/habitrpg#2327, HabitRPG/habitrpg#2405, and HabitRPG/habitrpg#2483.
2014-01-19 10:36:04 -06:00
css winter: use npc_ian from holiday-event pngs, disable gif for now (revert this later) 2013-12-31 08:47:10 -07:00
dist fix(checklists): Make checklist To-Do behavior more intuitive 2014-01-19 10:36:04 -06:00
img feat(perfect-day achievement) here's one for the road @wc8 @sabrecat, if 2014-01-15 16:26:47 -07:00
locales/en Some beautification of nav menu dropdown options 2014-01-18 10:23:20 -06:00
locales-old moved locales and locales-old from habitrpg, @lefnire I left them in habitrpg so that the strings already translated will continue to work, I will make sure to remove them when everything is done 2014-01-02 20:22:19 +01:00
script fix(checklists): Make checklist To-Do behavior more intuitive 2014-01-19 10:36:04 -06:00
tests fix(perfect-day): do not count non-active dailies when calculating perfect-day 2014-01-17 23:20:21 -06:00
.gitignore Rebalance potion drop ratios 2013-12-07 20:16:13 -05:00
.travis.yml allow any branch in travis builds 2013-10-27 16:23:02 -03:00
favicon.ico add a bunch of possible shared items for now, will clean up later 2013-03-11 14:50:00 -04:00
Gruntfile.js spritesmith: try using spritesmith-{TIMESTAMP}.png for image 2014-01-06 22:57:35 -07:00
index.js [https://github.com/HabitRPG/habitrpg/issues/1977] APIv2 WIP - start of a framework where operations are shared between client & server. If the op is called on the client, it updates the user & then POSTs to the server with op of the same name. If called on server, it updates the user and user.save()s 2013-12-11 21:42:05 -07:00
package.json spritesmith: try using spritesmith-{TIMESTAMP}.png for image 2014-01-06 22:57:35 -07:00
README.md fix readme: use npm test to run tests 2013-11-23 23:33:24 -03:00

Build Status

Shared resources useful for the multiple HabitRPG repositories, that way all the repositories remain in-sync with common characteristics. Includes things like:

  • Assets - sprites, images, etc
  • CSS - especially, esp. sprite-sheet mapping
  • Algorithms - level up algorithm, scoring functions, etc
  • View helper functions that may come in handy for multiple client MVCs
  • Item definitions - weapons, armor, pets

##Installation

  • npm install

  • grunt - after you've made modifications and want to compile the dist files for browser

  • Node.js

    • require ('coffee-script')
    • require('./script/algos.coffee'), require('./script/helpers.coffee'), etc.
  • Browser

    • Use <script/> tag to include ./dist/habitrpg-shared.js it will export window.habitrpgShared object.
    • // Use `browser.debug.js' if you want to have sourcemaps. - EDIT: Only one file now, and it has sourcemaps. Fix this
  • Note how to invoke scoring function:

    • algos.score(user, task, direction), etc
    • TODO document all the functions

##Tests

  • npm test

##CSS Shared CSS between the website and the mobile app is a fuzzy area. Spritesheets definitely go in habitrpg-shared (since mobile uses them too). Other things, like customizer buttons, may want to go here? As you find sharable components, (1) move them from the website into habitrpg-shared, (2) remove from website & make sure all html/css references are updated.

Currently, all or most spritesheets are available. They're in css/*.css, but that's not what you want. You want /spritesheets.css which is the concat'd file (using grunt) which includes all the spritesheets. I'd prefer this be in /dist/spritesheets.css for consistency, but it's having image referencing weirdness