mirror of
https://github.com/RussellChamp/GrimoireJS.git
synced 2026-10-28 06:52:32 +00:00
Fixed some generation of intelligence items
This commit is contained in:
1 parent
9060276ee7
commit
919f2f9cf1
2 files changed
+13
-7
No files matched your search
+3
-2
@@ -1,4 +1,4 @@
|
||||
/*global _:false */
|
||||
/*global _:false, console:false */
|
||||
/*global Grimoire:true, Intelligence:true */
|
||||
|
||||
'use strict';
|
||||
@@ -523,7 +523,7 @@ Weapons.getWeapon = function(type, wClass, final) {
|
||||
console.log(type);
|
||||
console.log(wClass);
|
||||
console.log(final);
|
||||
console.log("roll: " + roll);
|
||||
console.log('roll: ' + roll);
|
||||
console.log(newWeapon);
|
||||
console.log(special);
|
||||
return err.stack;
|
||||
@@ -540,6 +540,7 @@ Weapons.getWeapon = function(type, wClass, final) {
|
||||
if(final === true && _.random(1,100) === 1) {
|
||||
weapon.name = 'Intelligent ' + weapon.name;
|
||||
weapon.intelligence = Intelligence.getItemIntelligence(weapon.cost);
|
||||
weapon.cost += weapon.intelligence.cost;
|
||||
}
|
||||
|
||||
if(final === true && _.random(1,100) <= 30) {
|
||||
|
||||
Reference in new issue
Block a user