Skip to content

Commit

Permalink
Merge pull request #221 from zhong-yiyu/fix-typos-for-github-action
Browse files Browse the repository at this point in the history
Fix typos for GitHub action
  • Loading branch information
ondras authored Apr 25, 2024
2 parents 605976c + c1db82d commit fcb47ce
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/map/digger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class Digger extends Dungeon {
do {
featureAttempts++;
if (this._tryFeature(x, y, dir[0], dir[1])) { /* feature added */
//if (this._rooms.length + this._corridors.length == 2) { this._rooms[0].addDoor(x, y); } /* first room oficially has doors */
//if (this._rooms.length + this._corridors.length == 2) { this._rooms[0].addDoor(x, y); } /* first room officially has doors */
this._removeSurroundingWalls(x, y);
this._removeSurroundingWalls(x-dir[0], y-dir[1]);
break;
Expand Down
2 changes: 1 addition & 1 deletion src/map/rogue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface Room {


/**
* Dungeon generator which uses the "orginal" Rogue dungeon generation algorithm. See https://github.com/Davidslv/rogue-like/blob/master/docs/references/Mark_Damon_Hughes/07_Roguelike_Dungeon_Generation.md
* Dungeon generator which uses the "original" Rogue dungeon generation algorithm. See https://github.com/Davidslv/rogue-like/blob/master/docs/references/Mark_Damon_Hughes/07_Roguelike_Dungeon_Generation.md
* @author hyakugei
*/
export default class Rogue extends Map {
Expand Down
4 changes: 2 additions & 2 deletions src/map/uniform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ export default class Uniform extends Dungeon {
}

/**
* Generates connectors beween rooms
* @returns {bool} success Was this attempt successfull?
* Generates connectors between rooms
* @returns {bool} success Was this attempt successful?
*/
_generateCorridors() {
let cnt = 0;
Expand Down
6 changes: 3 additions & 3 deletions tests/spec/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe("Color", function() {
it("should handle named colors", function() {
expect(ROT.Color.fromString("red")).toEqual([255, 0, 0]);
});
it("should not handle nonexistant colors", function() {
it("should not handle nonexistent colors", function() {
expect(ROT.Color.fromString("lol")).toEqual([0, 0, 0]);
});
});
Expand All @@ -128,7 +128,7 @@ describe("Color", function() {
});

describe("interpolate", function() {
it("should intepolate two colors", function() {
it("should interpolate two colors", function() {
expect(ROT.Color.interpolate([10, 20, 40], [100, 200, 300], 0.1)).toEqual([19, 38, 66]);
});
it("should round values", function() {
Expand All @@ -140,7 +140,7 @@ describe("Color", function() {
});

describe("interpolateHSL", function() {
it("should intepolate two colors", function() {
it("should interpolate two colors", function() {
expect(ROT.Color.interpolateHSL([10, 20, 40], [100, 200, 300], 0.1)).toEqual([12, 33, 73]);
});
});
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/eventqueue.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("EventQueue", function() {
expect(q.get()).toEqual(456);
});

it("should survive removal of non-existant events", function() {
it("should survive removal of non-existent events", function() {
var q = new ROT.EventQueue();
q.add(0, 0);
var result = q.remove(1);
Expand Down
12 changes: 6 additions & 6 deletions tests/spec/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe("Path", function() {
expect(PATH.toString()).toEqual(PATH_B.toString());
});

it("should survive non-existant path X", function() {
it("should survive non-existent path X", function() {
dijkstra.compute(X[0], X[1], PATH_CALLBACK);
expect(PATH.length).toEqual(0);
});
Expand All @@ -106,7 +106,7 @@ describe("Path", function() {
expect(PATH.toString()).toEqual(PATH_B.toString());
});

it("should survive non-existant path X", function() {
it("should survive non-existent path X", function() {
dijkstra.compute(X[0], X[1], PATH_CALLBACK);
expect(PATH.length).toEqual(0);
});
Expand All @@ -127,7 +127,7 @@ describe("Path", function() {
expect(PATH.toString()).toEqual(PATH_B.toString());
});

it("should survive non-existant path X", function() {
it("should survive non-existent path X", function() {
dijkstra.compute(X6[0], X6[1], PATH_CALLBACK);
expect(PATH.length).toEqual(0);
});
Expand All @@ -151,7 +151,7 @@ describe("Path", function() {
expect(PATH.toString()).toEqual(PATH_B.toString());
});

it("should survive non-existant path X", function() {
it("should survive non-existent path X", function() {
astar.compute(X[0], X[1], PATH_CALLBACK);
expect(PATH.length).toEqual(0);
});
Expand All @@ -178,7 +178,7 @@ describe("Path", function() {
expect(PATH.toString()).toEqual(PATH_B.toString());
});

it("should survive non-existant path X", function() {
it("should survive non-existent path X", function() {
astar.compute(X[0], X[1], PATH_CALLBACK);
expect(PATH.length).toEqual(0);
});
Expand All @@ -199,7 +199,7 @@ describe("Path", function() {
expect(PATH.toString()).toEqual(PATH_B.toString());
});

it("should survive non-existant path X", function() {
it("should survive non-existent path X", function() {
astar.compute(X6[0], X6[1], PATH_CALLBACK);
expect(PATH.length).toEqual(0);
});
Expand Down

0 comments on commit fcb47ce

Please sign in to comment.