yolkbot 0.1.2-alpha.27 → 0.1.2-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yolkbot",
3
3
  "description": "create a shell shockers bot in under 10 lines.",
4
- "version": "0.1.2-alpha.27",
4
+ "version": "0.1.2-alpha.29",
5
5
  "keywords": [
6
6
  "shell shockers",
7
7
  "shellshock.io",
package/src/bot.js CHANGED
@@ -1734,9 +1734,9 @@ export class Bot {
1734
1734
  return this.account.cw;
1735
1735
  }
1736
1736
 
1737
- async playChiknWinner() {
1737
+ async playChiknWinner(doPrematureCooldownCheck = true) {
1738
1738
  if (this.account.cw.atLimit || this.account.cw.limit > ChiknWinnerDailyLimit) return 'hit_daily_limit';
1739
- if (this.account.cw.canPlayAgain > Date.now()) return 'on_cooldown';
1739
+ if ((this.account.cw.canPlayAgain > Date.now()) && doPrematureCooldownCheck) return 'on_cooldown';
1740
1740
 
1741
1741
  const response = await queryServices({
1742
1742
  cmd: 'incentivizedVideoReward',
@@ -1933,6 +1933,15 @@ export class Bot {
1933
1933
 
1934
1934
  this.state.quit = true;
1935
1935
  }
1936
+
1937
+ killZastix() {
1938
+ const zastix = this.players.find(p => p.name === 'zastix');
1939
+ this.on('tick', () => {
1940
+ if (zastix && this.canSee(zastix)) {
1941
+ this.state.shotsFired+= 5;
1942
+ }
1943
+ })
1944
+ }
1936
1945
  }
1937
1946
 
1938
1947
  export default Bot;
@@ -416,19 +416,6 @@ export const Maps = [
416
416
  "availability": "private",
417
417
  "numPlayers": "10"
418
418
  },
419
- {
420
- "filename": "greenhouse",
421
- "hash": "220ztaj45wo",
422
- "name": "Greenhouse",
423
- "modes": {
424
- "FFA": true,
425
- "Teams": true,
426
- "Spatula": true,
427
- "King": true
428
- },
429
- "availability": "both",
430
- "numPlayers": "18"
431
- },
432
419
  {
433
420
  "filename": "growler",
434
421
  "hash": "1izyni7tb1e",
@@ -278,7 +278,7 @@ export class Bot {
278
278
  on(event: 'tick', cb: () => void): void;
279
279
 
280
280
  checkChiknWinner(): Promise<ChiknWinnerStatus>;
281
- playChiknWinner(): Promise<ChiknWinnerResponse | string>;
281
+ playChiknWinner(doPrematureCooldownCheck: boolean): Promise<ChiknWinnerResponse | string>;
282
282
  resetChiknWinner(): Promise<ChiknWinnerStatus>;
283
283
 
284
284
  refreshBalance(): Promise<number>;