-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add egg item, modifications to try to improve npcs, especially that tricksy thief.
- Loading branch information
Showing
16 changed files
with
190 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* eslint-disable semi */ | ||
/// <reference types="cypress" /> | ||
// eslint-disable-next-line no-unused-vars | ||
/* global cy Cypress describe beforeEach afterEach it */ | ||
|
||
// getting started guide: | ||
// https://on.cypress.io/introduction-to-cypress | ||
|
||
describe('fight', () => { | ||
beforeEach(() => { | ||
cy.standardLogin() | ||
}) | ||
afterEach(() => { | ||
}) | ||
|
||
it('displays someone to fight', () => { | ||
cy.visit('/enemies') | ||
cy.contains('Fight') | ||
cy.url().should('match', /enemies$/u) | ||
cy.get('[role=heading]').contains('Fight').should('be.visible') | ||
cy.contains('Attack').should('be.visible') | ||
cy.get('.avatar').should('be.visible') | ||
}) | ||
|
||
// NPC checks | ||
it('can attack a thief', () => { | ||
cy.visit('/enemies') | ||
cy.url().should('match', /enemies$/u) | ||
cy.get('[role=heading]').contains('Fight').should('be.visible') | ||
cy.contains('Attack a').should('be.visible') | ||
cy.get('a[href*="/npc/attack/thief"]').first().click() | ||
cy.contains('sees you and prepares to defend!').should('be.visible') | ||
// Hmm, will fail on random group of thieves | ||
}) | ||
}); |
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,38 @@ | ||
/* eslint-disable semi */ | ||
/// <reference types="cypress" /> | ||
// eslint-disable-next-line no-unused-vars | ||
/* global cy Cypress describe beforeEach afterEach it */ | ||
|
||
// getting started guide: | ||
// https://on.cypress.io/introduction-to-cypress | ||
|
||
describe('check map loads', () => { | ||
beforeEach(() => { | ||
cy.standardLogin() | ||
}) | ||
afterEach(() => { | ||
}) | ||
|
||
it('displays map doshin', () => { | ||
cy.visit('/map') | ||
cy.contains('Map') | ||
cy.url().should('match', /map$/u) | ||
cy.get('[role=heading]').should('be.visible') | ||
cy.contains('Map').should('be.visible') | ||
cy.contains('Doshin').should('be.visible') | ||
cy.contains('Shrine').should('be.visible') | ||
cy.contains('Village Square').should('be.visible') | ||
}) | ||
|
||
// it('displays the map even for logged out users', () => { | ||
// cy.logout() | ||
// cy.visit('/map') | ||
// cy.contains('Map') | ||
// cy.url().should('match', /map$/u) | ||
// cy.get('[role=heading]').should('be.visible') | ||
// cy.contains('Map').should('be.visible') | ||
// cy.contains('Doshin').should('be.visible') | ||
// cy.contains('Shrine').should('be.visible') | ||
// cy.contains('Village Square').should('be.visible') | ||
// }) | ||
}); |
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,24 @@ | ||
/* eslint-disable semi */ | ||
/// <reference types="cypress" /> | ||
// eslint-disable-next-line no-unused-vars | ||
/* global cy Cypress describe beforeEach afterEach it */ | ||
|
||
// getting started guide: | ||
// https://on.cypress.io/introduction-to-cypress | ||
|
||
describe('check skills for current ninja', () => { | ||
beforeEach(() => { | ||
cy.standardLogin() | ||
}) | ||
afterEach(() => { | ||
}) | ||
|
||
it('displays skills', () => { | ||
cy.visit('/skill') | ||
cy.contains('Skills') | ||
cy.url().should('match', /skill$/u) | ||
cy.get('[role=heading]').contains('Skills').should('be.visible') | ||
cy.contains('Dueling Combat Skills').should('be.visible') | ||
cy.contains('Passive Skills').should('be.visible') | ||
}) | ||
}); |
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
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
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,19 @@ | ||
insert into item ( | ||
item_internal_name, | ||
item_display_name, | ||
item_cost, | ||
image, | ||
for_sale, | ||
usage, ignore_stealth, covert, turn_cost, target_damage, | ||
turn_change, self_use, plural, other_usable, traits | ||
) | ||
values | ||
( | ||
'egg', | ||
'Egg', | ||
1, | ||
'', | ||
default, | ||
'The egg of some creature', default, default, default, default, | ||
default, default, 's', default, 'food' | ||
); |
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
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
Oops, something went wrong.