feat(spookDust): add the spookDust special spell, like snowballs. Note: this is handled specially so spookDust can be bought with GP, is a WIP

This commit is contained in:
Tyler Renelle
2014-10-02 19:17:44 -06:00
parent 29262826e2
commit 786f9a92df
23 changed files with 2083 additions and 1992 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+27
View File
@@ -11479,6 +11479,33 @@ api.spells = {
user.stats.buffs.snowball = false;
return user.stats.gp -= 5;
}
},
spookDust: {
text: t('spellSpecialSpookDustText'),
mana: 0,
value: 15,
target: 'user',
notes: t('spellSpecialSpookDustNotes'),
cast: function(user, target) {
var _base;
target.stats.buffs.spookDust = true;
if ((_base = target.achievements).spookDust == null) {
_base.spookDust = 0;
}
target.achievements.spookDust++;
return user.items.special.spookDust--;
}
},
opaquePotion: {
text: t('spellSpecialOpaquePotionText'),
mana: 0,
value: 5,
target: 'self',
notes: t('spellSpecialOpaquePotionNotes'),
cast: function(user, target) {
user.stats.buffs.spookDust = false;
return user.stats.gp -= 5;
}
}
}
};
+478 -472
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

+12
View File
@@ -3310,3 +3310,15 @@
width: 60px;
height: 60px;
}
.skin_pumpkin {
background-image: url(spritesmith1.png);
background-position: -364px -1456px;
width: 90px;
height: 90px;
}
.customize-option.skin_pumpkin {
background-image: url(spritesmith1.png);
background-position: -389px -1471px;
width: 60px;
height: 60px;
}
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 64 KiB

+297 -297
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

+672 -666
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 176 KiB

+285 -279
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 KiB

After

Width:  |  Height:  |  Size: 189 KiB

+281 -275
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

+2
View File
@@ -4,6 +4,8 @@
"winterColors": "Winter Colors",
"annoyingFriends": "Annoying Friends",
"annoyingFriendsText": "Got snowballed <%= snowballs %> times by party members.",
"alarmingFriends": "Alarming Friends",
"alarmingFriendsText": "Got spooked <%= spookDust %> times by party members.",
"valentineCard": "Valentine's Day Card",
"adoringFriends": "Adoring Friends",
"adoringFriendsText": "Aww, you and your friend must really care about each other! Sent or received <%= cards %> Valentine's Day cards.",
+6 -2
View File
@@ -49,8 +49,12 @@
"spellSpecialSnowballAuraText": "Snowball",
"spellSpecialSnowballAuraNotes": "Throw a snowball at a party member, what could possibly go wrong? Lasts until member's new day.",
"spellSpecialSaltText": "Salt",
"spellSpecialSaltNotes": "Someone has snowballed you. Ha ha, very funny. Now get this snow off me!"
"spellSpecialSaltNotes": "Someone has snowballed you. Ha ha, very funny. Now get this snow off me!",
"spellSpecialSpookDustText": "Spook Dust",
"spellSpecialSpookDustNotes": "Turn your friends into a floating blanket with eyes!",
"spellSpecialOpaquePotionText": "Opaque Potion",
"spellSpecialOpaquePotionNotes": "Cancel the effects of Spook Dust."
}
+22
View File
@@ -608,6 +608,28 @@ api.spells =
user.stats.buffs.snowball = false
user.stats.gp -= 5
spookDust:
text: t('spellSpecialSpookDustText')
mana: 0
value: 15
target: 'user'
notes: t('spellSpecialSpookDustNotes')
cast: (user, target) ->
target.stats.buffs.spookDust = true
target.achievements.spookDust ?= 0
target.achievements.spookDust++
user.items.special.spookDust--
opaquePotion:
text: t('spellSpecialOpaquePotionText')
mana: 0
value: 5
target: 'self'
notes: t('spellSpecialOpaquePotionNotes')
cast: (user, target) ->
user.stats.buffs.spookDust = false
user.stats.gp -= 5
# Intercept all spells to reduce user.stats.mp after casting the spell
_.each api.spells, (spellClass) ->
_.each spellClass, (spell, key) ->