Fixing whitespace conformity in encounters.js

This commit is contained in:
Travis Weston
2014-07-13 11:32:07 -04:00
parent 4bb126c205
commit c91bf1d20a
+367 -367
View File
@@ -5,396 +5,396 @@ Events.Encounters = [
/* Tier 1 */ /* Tier 1 */
{ /* Snarling Beast */ { /* Snarling Beast */
title: _('A Snarling Beast'), title: _('A Snarling Beast'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() <= 10 && World.getTerrain() == World.TILE.FOREST; return World.getDistance() <= 10 && World.getTerrain() == World.TILE.FOREST;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'snarling beast', enemy: 'snarling beast',
enemyName: _('snarling beast'), enemyName: _('snarling beast'),
deathMessage: _('the snarling beast is dead'), deathMessage: _('the snarling beast is dead'),
chara: 'B', chara: 'B',
damage: 1, damage: 1,
hit: 0.8, hit: 0.8,
attackDelay: 1, attackDelay: 1,
health: 5, health: 5,
loot: { loot: {
'fur': { 'fur': {
min: 1, min: 1,
max: 3, max: 3,
chance: 1 chance: 1
}, },
'meat': { 'meat': {
min: 1, min: 1,
max: 3, max: 3,
chance: 1 chance: 1
}, },
'teeth': { 'teeth': {
min: 1, min: 1,
max: 3, max: 3,
chance: 0.8 chance: 0.8
} }
}, },
notification: _('a snarling beast leaps out of the underbrush') notification: _('a snarling beast leaps out of the underbrush')
} }
} }
}, },
{ /* Gaunt Man */ { /* Gaunt Man */
title: _('A Gaunt Man'), title: _('A Gaunt Man'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() <= 10 && World.getTerrain() == World.TILE.BARRENS; return World.getDistance() <= 10 && World.getTerrain() == World.TILE.BARRENS;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'gaunt man', enemy: 'gaunt man',
enemyName: _('gaunt man'), enemyName: _('gaunt man'),
deathMessage: _('the gaunt man is dead'), deathMessage: _('the gaunt man is dead'),
chara: 'G', chara: 'G',
damage: 2, damage: 2,
hit: 0.8, hit: 0.8,
attackDelay: 2, attackDelay: 2,
health: 6, health: 6,
loot: { loot: {
'cloth': { 'cloth': {
min: 1, min: 1,
max: 3, max: 3,
chance: 0.8 chance: 0.8
}, },
'teeth': { 'teeth': {
min: 1, min: 1,
max: 2, max: 2,
chance: 0.8 chance: 0.8
}, },
'leather': { 'leather': {
min: 1, min: 1,
max: 2, max: 2,
chance: 0.5 chance: 0.5
} }
}, },
notification: _('a gaunt man approaches, a crazed look in his eye') notification: _('a gaunt man approaches, a crazed look in his eye')
} }
} }
}, },
{ /* Strange Bird */ { /* Strange Bird */
title: _('A Strange Bird'), title: _('A Strange Bird'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() <= 10 && World.getTerrain() == World.TILE.FIELD; return World.getDistance() <= 10 && World.getTerrain() == World.TILE.FIELD;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'strange bird', enemy: 'strange bird',
enemyName: _('strange bird'), enemyName: _('strange bird'),
deathMessage: _('the strange bird is dead'), deathMessage: _('the strange bird is dead'),
chara: 'B', chara: 'B',
damage: 3, damage: 3,
hit: 0.8, hit: 0.8,
attackDelay: 2, attackDelay: 2,
health: 4, health: 4,
loot: { loot: {
'scales': { 'scales': {
min: 1, min: 1,
max: 3, max: 3,
chance: 0.8 chance: 0.8
}, },
'teeth': { 'teeth': {
min: 1, min: 1,
max: 2, max: 2,
chance: 0.5 chance: 0.5
}, },
'meat': { 'meat': {
min: 1, min: 1,
max: 3, max: 3,
chance: 0.8 chance: 0.8
} }
}, },
notification: _('a strange looking bird speeds across the plains') notification: _('a strange looking bird speeds across the plains')
} }
} }
}, },
/* Tier 2*/ /* Tier 2*/
{ /* Shivering Man */ { /* Shivering Man */
title: _('A Shivering Man'), title: _('A Shivering Man'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.BARRENS; return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.BARRENS;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'shivering man', enemy: 'shivering man',
enemyName: _('shivering man'), enemyName: _('shivering man'),
deathMessage: _('the shivering man is dead'), deathMessage: _('the shivering man is dead'),
chara: 'S', chara: 'S',
damage: 5, damage: 5,
hit: 0.5, hit: 0.5,
attackDelay: 1, attackDelay: 1,
health: 20, health: 20,
loot: { loot: {
'cloth': { 'cloth': {
min: 1, min: 1,
max: 1, max: 1,
chance: 0.2 chance: 0.2
}, },
'teeth': { 'teeth': {
min: 1, min: 1,
max: 2, max: 2,
chance: 0.8 chance: 0.8
}, },
'leather': { 'leather': {
min: 1, min: 1,
max: 1, max: 1,
chance: 0.2 chance: 0.2
}, },
'medicine': { 'medicine': {
min: 1, min: 1,
max: 3, max: 3,
chance: 0.7 chance: 0.7
} }
}, },
notification: _('a shivering man approaches and attacks with surprising strength') notification: _('a shivering man approaches and attacks with surprising strength')
} }
} }
}, },
{ /* Man-eater */ { /* Man-eater */
title: _('A Man-Eater'), title: _('A Man-Eater'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.FOREST; return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.FOREST;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'man-eater', enemy: 'man-eater',
enemyName: _('man-eater'), enemyName: _('man-eater'),
deathMessage: _('the man-eater is dead'), deathMessage: _('the man-eater is dead'),
chara: 'E', chara: 'E',
damage: 3, damage: 3,
hit: 0.8, hit: 0.8,
attackDelay: 1, attackDelay: 1,
health: 25, health: 25,
loot: { loot: {
'fur': { 'fur': {
min: 5, min: 5,
max: 10, max: 10,
chance: 1 chance: 1
}, },
'meat': { 'meat': {
min: 5, min: 5,
max: 10, max: 10,
chance: 1 chance: 1
}, },
'teeth': { 'teeth': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
} }
}, },
notification: _('a large creature attacks, claws freshly bloodied') notification: _('a large creature attacks, claws freshly bloodied')
} }
} }
}, },
{ /* Scavenger */ { /* Scavenger */
title: _('A Scavenger'), title: _('A Scavenger'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.BARRENS; return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.BARRENS;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'scavenger', enemy: 'scavenger',
enemyName: _('scavenger'), enemyName: _('scavenger'),
deathMessage: _('the scavenger is dead'), deathMessage: _('the scavenger is dead'),
chara: 'S', chara: 'S',
damage: 4, damage: 4,
hit: 0.8, hit: 0.8,
attackDelay: 2, attackDelay: 2,
health: 30, health: 30,
loot: { loot: {
'cloth': { 'cloth': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
}, },
'leather': { 'leather': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
}, },
'iron': { 'iron': {
min: 1, min: 1,
max: 5, max: 5,
chance: 0.5 chance: 0.5
}, },
'medicine': { 'medicine': {
min: 1, min: 1,
max: 2, max: 2,
chance: 0.1 chance: 0.1
} }
}, },
notification: _('a scavenger draws close, hoping for an easy score') notification: _('a scavenger draws close, hoping for an easy score')
} }
} }
}, },
{ /* Huge Lizard */ { /* Huge Lizard */
title: _('A Huge Lizard'), title: _('A Huge Lizard'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.FIELD; return World.getDistance() > 10 && World.getDistance() <= 20 && World.getTerrain() == World.TILE.FIELD;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'lizard', enemy: 'lizard',
enemyName: _('lizard'), enemyName: _('lizard'),
deathMessage: _('the lizard is dead'), deathMessage: _('the lizard is dead'),
chara: 'L', chara: 'L',
damage: 5, damage: 5,
hit: 0.8, hit: 0.8,
attackDelay: 2, attackDelay: 2,
health: 20, health: 20,
loot: { loot: {
'scales': { 'scales': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
}, },
'teeth': { 'teeth': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.5 chance: 0.5
}, },
'meat': { 'meat': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
} }
}, },
notification: _('the grass thrashes wildly as a huge lizard pushes through') notification: _('the grass thrashes wildly as a huge lizard pushes through')
} }
} }
}, },
/* Tier 3*/ /* Tier 3*/
{ /* Feral Terror */ { /* Feral Terror */
title: _('A Feral Terror'), title: _('A Feral Terror'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() > 20 && World.getTerrain() == World.TILE.FOREST; return World.getDistance() > 20 && World.getTerrain() == World.TILE.FOREST;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'feral terror', enemy: 'feral terror',
enemyName: _('feral terror'), enemyName: _('feral terror'),
deathMessage: _('the feral terror is dead'), deathMessage: _('the feral terror is dead'),
chara: 'F', chara: 'F',
damage: 6, damage: 6,
hit: 0.8, hit: 0.8,
attackDelay: 1, attackDelay: 1,
health: 45, health: 45,
loot: { loot: {
'fur': { 'fur': {
min: 5, min: 5,
max: 10, max: 10,
chance: 1 chance: 1
}, },
'meat': { 'meat': {
min: 5, min: 5,
max: 10, max: 10,
chance: 1 chance: 1
}, },
'teeth': { 'teeth': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
} }
}, },
notification: _('a beast, wilder than imagining, erupts out of the foliage') notification: _('a beast, wilder than imagining, erupts out of the foliage')
} }
} }
}, },
{ /* Soldier */ { /* Soldier */
title: _('A Soldier'), title: _('A Soldier'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() > 20 && World.getTerrain() == World.TILE.BARRENS; return World.getDistance() > 20 && World.getTerrain() == World.TILE.BARRENS;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'soldier', enemy: 'soldier',
enemyName: _('soldier'), enemyName: _('soldier'),
deathMessage: _('the soldier is dead'), deathMessage: _('the soldier is dead'),
ranged: true, ranged: true,
chara: 'D', chara: 'D',
damage: 8, damage: 8,
hit: 0.8, hit: 0.8,
attackDelay: 2, attackDelay: 2,
health: 50, health: 50,
loot: { loot: {
'cloth': { 'cloth': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
}, },
'bullets': { 'bullets': {
min: 1, min: 1,
max: 5, max: 5,
chance: 0.5 chance: 0.5
}, },
'rifle': { 'rifle': {
min: 1, min: 1,
max: 1, max: 1,
chance: 0.2 chance: 0.2
}, },
'medicine': { 'medicine': {
min: 1, min: 1,
max: 2, max: 2,
chance: 0.1 chance: 0.1
} }
}, },
notification: _('a soldier opens fire from across the desert') notification: _('a soldier opens fire from across the desert')
} }
} }
}, },
{ /* Sniper */ { /* Sniper */
title: _('A Sniper'), title: _('A Sniper'),
isAvailable: function() { isAvailable: function() {
return World.getDistance() > 20 && World.getTerrain() == World.TILE.FIELD; return World.getDistance() > 20 && World.getTerrain() == World.TILE.FIELD;
}, },
scenes: { scenes: {
'start': { 'start': {
combat: true, combat: true,
enemy: 'sniper', enemy: 'sniper',
enemyName: _('sniper'), enemyName: _('sniper'),
deathMessage: _('the sniper is dead'), deathMessage: _('the sniper is dead'),
chara: 'S', chara: 'S',
damage: 15, damage: 15,
hit: 0.8, hit: 0.8,
attackDelay: 4, attackDelay: 4,
health: 30, health: 30,
ranged: true, ranged: true,
loot: { loot: {
'cloth': { 'cloth': {
min: 5, min: 5,
max: 10, max: 10,
chance: 0.8 chance: 0.8
}, },
'bullets': { 'bullets': {
min: 1, min: 1,
max: 5, max: 5,
chance: 0.5 chance: 0.5
}, },
'rifle': { 'rifle': {
min: 1, min: 1,
max: 1, max: 1,
chance: 0.2 chance: 0.2
}, },
'medicine': { 'medicine': {
min: 1, min: 1,
max: 2, max: 2,
chance: 0.1 chance: 0.1
} }
}, },
notification: _('a shot rings out, from somewhere in the long grass') notification: _('a shot rings out, from somewhere in the long grass')
} }
} }
} }
]; ];