Files
f00535983e [MDB IGNORE] [IDB IGNORE] atom damage (#5235)
## About The Pull Request

adds generic system for atom health / integrity / damage

everything that isn't flagged with not-bludgeonable can, well, now be
bludgeoned.

## Why It's Good For The Game

more interactive game world through the means of making people able to
break Everything.

## Changelog

🆑
add: atom damage - (almost) everything is now breakable.
refactor: new /atom level materials system
refactor: a lot of the combat system / click code
refactor: melee attack styles
/🆑

---------

Co-authored-by: silicons <no@you.cat>
2023-11-11 17:33:57 -07:00

42 lines
1.5 KiB
Plaintext

// todo: this system needs reworked
//Defaults
#define MOVE_RESIST_SHURIKEN 250
#define MOVE_RESIST_DEFAULT 1000
#define MOVE_FORCE_DEFAULT 1000
#define THROW_FORCE_DEFAULT 1000
#define THROW_RESIST_SHURIKEN 250
#define THROW_RESIST_DEFAULT 1000
#define PULL_FORCE_DEFAULT 1000
//etc
//? stuff that shouldn't have force, almost
#define MOVE_FORCE_MOUSE 100
//? stuff that should have less force
//? stuff that have basically normal force
//? stuff that should have higher force
//? stuff that should have overwhelming force
//Factors/modifiers
#define MOVE_FORCE_PULL_RATIO 0.8 //Same move force to pull objects
#define MOVE_FORCE_PUSH_RATIO 0.9 //Same move force to normally push
#define MOVE_FORCE_FORCEPUSH_RATIO 2 //2x move force to forcefully push
#define MOVE_FORCE_CRUSH_RATIO 3 //3x move force to do things like crush objects
#define MOVE_FORCE_THROW_RATIO 0.25 // 0.25x minimum to move
#define MOVE_FORCE_OVERPOWERING (MOVE_FORCE_DEFAULT * MOVE_FORCE_CRUSH_RATIO * 10)
#define MOVE_FORCE_EXTREMELY_STRONG (MOVE_FORCE_DEFAULT * MOVE_FORCE_CRUSH_RATIO * 3)
#define MOVE_FORCE_VERY_STRONG ((MOVE_FORCE_DEFAULT * MOVE_FORCE_CRUSH_RATIO) - 1)
#define MOVE_FORCE_STRONG (MOVE_FORCE_DEFAULT * 2)
#define MOVE_FORCE_NORMAL MOVE_FORCE_DEFAULT
#define MOVE_FORCE_WEAK (MOVE_FORCE_DEFAULT / 2)
#define MOVE_FORCE_VERY_WEAK ((MOVE_FORCE_DEFAULT / MOVE_FORCE_CRUSH_RATIO) + 1)
#define MOVE_FORCE_EXTREMELY_WEAK (MOVE_FORCE_DEFAULT / (MOVE_FORCE_CRUSH_RATIO * 3))
#define MOVE_RESIST_ABSOLUTE INFINITY
#define MOVE_FORCE_ABSOLUTE INFINITY