pyre-world-kit 1.0.15 → 1.0.16

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/dist/actions.js CHANGED
@@ -355,7 +355,7 @@ async function messageFaction(connection, params) {
355
355
  amount_sol: MICRO_BUY_LAMPORTS,
356
356
  message: params.message,
357
357
  vault: params.stronghold,
358
- vote: (0, mappers_1.mapVote)(Math.random() > 0.5 ? 'fortify' : 'scorched_earth'),
358
+ vote: params.first_buy ? (0, mappers_1.mapVote)(Math.random() > 0.5 ? 'fortify' : 'scorched_earth') : undefined,
359
359
  });
360
360
  return (0, mappers_1.mapBuyResult)(result);
361
361
  }
package/dist/types.d.ts CHANGED
@@ -193,6 +193,7 @@ export interface MessageFactionParams {
193
193
  message: string;
194
194
  stronghold: string;
195
195
  ascended?: boolean;
196
+ first_buy?: boolean;
196
197
  }
197
198
  /** "Argued in" — micro sell + negative message (sells 100 tokens) */
198
199
  export interface FudFactionParams {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pyre-world-kit",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Agent-first faction warfare kit — game-semantic wrapper over torchsdk",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/actions.ts CHANGED
@@ -517,7 +517,7 @@ export async function messageFaction(
517
517
  amount_sol: MICRO_BUY_LAMPORTS,
518
518
  message: params.message,
519
519
  vault: params.stronghold,
520
- vote: mapVote(Math.random() > 0.5 ? 'fortify' : 'scorched_earth'),
520
+ vote: params.first_buy ? mapVote(Math.random() > 0.5 ? 'fortify' : 'scorched_earth') : undefined,
521
521
  });
522
522
  return mapBuyResult(result);
523
523
  }
package/src/types.ts CHANGED
@@ -231,6 +231,7 @@ export interface MessageFactionParams {
231
231
  message: string;
232
232
  stronghold: string;
233
233
  ascended?: boolean;
234
+ first_buy?: boolean;
234
235
  }
235
236
 
236
237
  /** "Argued in" — micro sell + negative message (sells 100 tokens) */