forked from doublespeakgames/adarkroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set down framework, storage/map gen/etc.
- Loading branch information
Vermilingua
committed
Oct 16, 2013
1 parent
36b9cf2
commit acc04d0
Showing
6 changed files
with
126 additions
and
7 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
var Prestige = { | ||
name: 'Prestige', | ||
|
||
options: {}, | ||
|
||
init: function(options) { | ||
this.options = $.extend( | ||
this.options, | ||
options | ||
); | ||
}, | ||
|
||
save: function() { | ||
prevStores = [ //g = goods, w = weapons, a = ammo | ||
$SM.get('stores["wood"]'), // randGen('g'), | ||
$SM.get('stores["fur"]'), // randGen('g'), | ||
$SM.get('stores["meat"]'), // randGen('g'), | ||
$SM.get('stores["iron"]'), // randGen('g'), | ||
$SM.get('stores["coal"]'), // randGen('g'), | ||
$SM.get('stores["sulphur"]'), // randGen('g'), | ||
$SM.get('stores["steel"]'), // randGen('g'), | ||
$SM.get('stores["cured meat"]'), // randGen('g'), | ||
$SM.get('stores["scales"]'), // randGen('g'), | ||
$SM.get('stores["teeth"]'), // randGen('g'), | ||
$SM.get('stores["leather"]'), // randGen('g'), | ||
$SM.get('stores["bait"]'), // randGen('g'), | ||
$SM.get('stores["torch"]'), // randGen('g'), | ||
$SM.get('stores["cloth"]'), // randGen('g'), | ||
$SM.get('stores["bone spear"]'), // randGen('w'), | ||
$SM.get('stores["iron sword"]'), // randGen('w'), | ||
$SM.get('stores["steel sword"]'), // randGen('w'), | ||
$SM.get('stores["bayonet"]'), // randGen('w'), | ||
$SM.get('stores["rifle"]'), // randGen('w'), | ||
$SM.get('stores["laser rifle"]'), // randGen('w'), | ||
$SM.get('stores["bullets"]'), // randGen('a'), | ||
$SM.get('stores["energy cell"]'), // randGen('a'), | ||
$SM.get('stores["grenade"]'), // randGen('a'), | ||
$SM.get('stores["bolas"]') // randGen('a') | ||
]; | ||
return prevStores; | ||
}, | ||
|
||
/*randGen: function(storeType) { | ||
if (storeType == 'g') { | ||
divisor = Math.floor(Math.random()*10) | ||
} | ||
else if (storeType == 'w') { | ||
divisor = Math.floor(Math.floor(Math.random()*10)/2) | ||
} | ||
else if (storeType == 'a') { | ||
divisor = Math.floor(Math.random()*10*Math.floor(Math.random()*10/5)) | ||
} | ||
else { divisor = 1 }; | ||
if (divisor === 0) { | ||
divisor = 1 | ||
}; | ||
return divisor; | ||
}*/ | ||
|
||
} |
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
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