quake2ts 0.0.243 → 0.0.244

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/packages/client/dist/browser/index.global.js +10 -10
  3. package/packages/client/dist/browser/index.global.js.map +1 -1
  4. package/packages/client/dist/cjs/index.cjs +76 -74
  5. package/packages/client/dist/cjs/index.cjs.map +1 -1
  6. package/packages/client/dist/esm/index.js +76 -74
  7. package/packages/client/dist/esm/index.js.map +1 -1
  8. package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
  9. package/packages/client/dist/types/entities.d.ts +6 -0
  10. package/packages/client/dist/types/entities.d.ts.map +1 -0
  11. package/packages/client/dist/types/index.d.ts.map +1 -1
  12. package/packages/game/dist/browser/index.global.js +2 -2
  13. package/packages/game/dist/browser/index.global.js.map +1 -1
  14. package/packages/game/dist/cjs/index.cjs +16 -1
  15. package/packages/game/dist/cjs/index.cjs.map +1 -1
  16. package/packages/game/dist/esm/index.js +16 -1
  17. package/packages/game/dist/esm/index.js.map +1 -1
  18. package/packages/game/dist/tsconfig.tsbuildinfo +1 -1
  19. package/packages/game/dist/types/combat/damage.d.ts.map +1 -1
  20. package/packages/game/dist/types/combat/weapons/firing.d.ts.map +1 -1
  21. package/packages/game/dist/types/combat/weapons/rogue.d.ts +1 -0
  22. package/packages/game/dist/types/combat/weapons/rogue.d.ts.map +1 -1
  23. package/packages/game/dist/types/entities/entity.d.ts +1 -0
  24. package/packages/game/dist/types/entities/entity.d.ts.map +1 -1
  25. package/packages/game/dist/types/entities/projectiles.d.ts +1 -0
  26. package/packages/game/dist/types/entities/projectiles.d.ts.map +1 -1
  27. package/packages/game/dist/types/inventory/items.d.ts.map +1 -1
@@ -4428,6 +4428,16 @@ var WEAPON_ITEMS = {
4428
4428
  initialAmmo: 50,
4429
4429
  pickupAmmo: 50,
4430
4430
  fireRate: 0.1
4431
+ },
4432
+ "weapon_etf_rifle": {
4433
+ type: "weapon",
4434
+ id: "weapon_etf_rifle",
4435
+ name: "ETF Rifle",
4436
+ weaponId: WeaponId.EtfRifle,
4437
+ ammoType: AmmoType.Flechettes,
4438
+ initialAmmo: 50,
4439
+ pickupAmmo: 50,
4440
+ fireRate: 0.1
4431
4441
  }
4432
4442
  // ... add others as we implement them
4433
4443
  };
@@ -5316,7 +5326,12 @@ function T_Damage(targ, inflictor, attacker, dir, point, normal, damage, knockba
5316
5326
  };
5317
5327
  }
5318
5328
  const knocked = applyKnockback(targ, attacker, dir, modifiedKnockback, dflags);
5319
- const [take, psave, asave, remainingCells, remainingArmor] = applyProtection(targ, point, normal, modifiedDamage, dflags);
5329
+ let [take, psave, asave, remainingCells, remainingArmor] = applyProtection(targ, point, normal, modifiedDamage, dflags);
5330
+ if (targ.monsterinfo && targ.monsterinfo.freeze_time > time && modifiedDamage > 0) {
5331
+ take = targ.health + 100;
5332
+ psave = 0;
5333
+ asave = 0;
5334
+ }
5320
5335
  if (targ.powerArmor && remainingCells !== void 0) {
5321
5336
  targ.powerArmor.cellCount = remainingCells;
5322
5337
  }