SOURCE / PINNED RELEASE
Made of little things.
Faultline
- Release
- da1ffaa5624c…
- Author-recorded commit
- 60f5f03189db…
- License
- LICENSE
- Author’s source reference
- nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-6932b12c78c
Archive hash verified: 5a2e0492417ec4e7…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
import { combat } from './combat-tuning';
export const guns = [
{
name: 'Kestrel C4',
type: 'Carbine',
mode: 'AUTO',
mag: 30,
delay: 6,
damage: 27,
reload: 114,
penetration: 1.25,
spread: 0.014,
kick: 0.028,
pellets: 1,
zoom: 1.45,
blurb: 'Steady handling and a quick return to aim.',
},
{
name: 'Viper 9',
type: 'Submachine gun',
mode: 'AUTO',
mag: 32,
delay: 4,
damage: 19,
reload: 86,
penetration: 0.72,
spread: 0.032,
kick: 0.022,
pellets: 1,
zoom: 1.25,
blurb: 'Fast cycling and a short reload, with a wider grouping.',
},
{
name: 'Breaker 12',
type: 'Pump shotgun',
mode: 'PUMP',
mag: 6,
delay: 47,
damage: 17,
reload: 148,
penetration: 0.55,
spread: 0.105,
kick: 0.073,
pellets: 8,
zoom: 1.2,
blurb: 'Eight pellets per shell. Every follow-up needs a pump cycle.',
},
{
name: 'Meridian D7',
type: 'Marksman rifle',
mode: 'SEMI',
mag: 10,
delay: 18,
damage: 68,
reload: 143,
penetration: 1.9,
spread: 0.006,
kick: 0.057,
pellets: 1,
zoom: 2,
blurb: 'Tight grouping and strong individual hits with a magnified sight.',
},
{
name: 'Kestrel C4H',
type: 'Heavy carbine',
mode: 'AUTO',
mag: 24,
delay: 7,
damage: 34,
reload: 128,
penetration: 1.55,
spread: 0.012,
kick: 0.04,
pellets: 1,
zoom: 1.5,
blurb: 'A slower Kestrel variant with more kick and a tighter grouping.',
},
{
name: 'Finch P9',
type: 'Pistol',
mode: 'SEMI',
mag: 14,
delay: 9,
damage: 25,
reload: 67,
penetration: 0.65,
spread: 0.019,
kick: 0.032,
pellets: 1,
zoom: 1.25,
blurb: 'Fast draw and a short reset between taps.',
},
{
name: 'Hammer H6',
type: 'Heavy pistol',
mode: 'SEMI',
mag: 6,
delay: 18,
damage: 48,
reload: 99,
penetration: 1.1,
spread: 0.012,
kick: 0.064,
pellets: 1,
zoom: 1.35,
blurb: 'Six rounds with a slower, heavier follow-up.',
},
{
name: 'Comet R1',
type: 'RPG',
mode: 'ROCKET',
mag: 1,
delay: 35,
damage: combat.blast.damage,
reload: 156,
penetration: 0,
spread: 0,
kick: 0.085,
pellets: 1,
zoom: 1.18,
blurb: 'A visible rocket bursts on contact. Reload between launches.',
},
] as const;
export const FIRST_SECONDARY = 5,
RPG = 7;
export const isPrimary = (id: unknown): id is number =>
typeof id === 'number' && Number.isInteger(id) && id >= 0 && id < FIRST_SECONDARY;
export const isSecondary = (id: unknown): id is number =>
typeof id === 'number' && Number.isInteger(id) && id >= FIRST_SECONDARY && id < guns.length;
