feat(spookDust): add the spookDust special spell, like snowballs. Note: this is handled specially so spookDust can be bought with GP, is a WIP
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
@@ -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;
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 176 KiB |
|
Before Width: | Height: | Size: 188 KiB After Width: | Height: | Size: 189 KiB |
|
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 168 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 3.1 KiB |
@@ -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.",
|
||||
|
||||
@@ -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."
|
||||
|
||||
}
|
||||
|
||||
@@ -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) ->
|
||||
|
||||