Skip to content

Commit

Permalink
Clarify what flip does on enemy damages which is nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
aldelaro5 committed Aug 1, 2024
1 parent 1fbc202 commit 2b6014f
Show file tree
Hide file tree
Showing 16 changed files with 59 additions and 21 deletions.
8 changes: 6 additions & 2 deletions docs/Battle system/Enemy actions/Enemies/Beetle.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ A single target horn slash

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down Expand Up @@ -152,7 +154,9 @@ A party wide dash attack

|#|Conditions|caller|damage|property|block|jumpheight|spinammount|jumpevenonblock|overrides|
|-:|---------|-----|-------|-------|-----|----------|-----------|--------------|---------|
|1|Always happen|This enemy|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|`commandsuccess`|0.0|Vector3.zero|false|null|
|1|Always happen|This enemy|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|`commandsuccess`|0.0|Vector3.zero|false|null|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/Bloatshroom.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ A single target jump attack.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|{[BlockSoundOnly](../../Damage%20pipeline/DoDamage.md#blocksoundonly)}|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|{[BlockSoundOnly](../../Damage%20pipeline/DoDamage.md#blocksoundonly)}|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
12 changes: 9 additions & 3 deletions docs/Battle system/Enemy actions/Enemies/Centipede.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ A single target bite attack with [Flip](../../Damage%20pipeline/AttackProperty.m

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down Expand Up @@ -262,7 +264,9 @@ A party wide dash attack.

|#|Conditions|caller|damage|property|block|jumpheight|spinammount|jumpevenonblock|overrides|
|-:|---------|-----|-------|-------|-----|----------|-----------|--------------|---------|
|1|Always happen|This enemy|2|[Flip](../../Damage%20pipeline/AttackProperty.md)|`commandsuccess`|20.0|(0.0, 30.0, 0.0)|true|null|
|1|Always happen|This enemy|2|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|`commandsuccess`|20.0|(0.0, 30.0, 0.0)|true|null|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down Expand Up @@ -291,7 +295,9 @@ A single target underground attack that can drain `hp`.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/ChomperBrute.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ A single target head bash.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/Delilah.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ This move always sets `dontusecharge` to true which means `charge` will not get

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|null|`playerdata[playertargetID]` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|6|[Flip](../../Damage%20pipeline/AttackProperty.md)|empty array|`commandsuccess`|
|1|Always happen|null|`playerdata[playertargetID]` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|6|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|empty array|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
6 changes: 4 additions & 2 deletions docs/Battle system/Enemy actions/Enemies/EverlastingKing.md
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,10 @@ This move always sets `nonphyscal` to true which affects the effects of the `Fro

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|2|Happens after DoDamage 1 if the target's `hp` is still above 0 and either [HPPercent](../../Actors%20states/HPPercent.md) is lower than 0.6 or `data[2]` is 2 (this enemy went through both phase transitions)|This enemy|The same target as DoDamage 1|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|
|2|Happens after DoDamage 1 if the target's `hp` is still above 0 and either [HPPercent](../../Actors%20states/HPPercent.md) is lower than 0.6 or `data[2]` is 2 (this enemy went through both phase transitions)|This enemy|The same target as DoDamage 1|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/Krawler.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ A single target dash attack.
|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Happens if at least one of the following is true:<ul><li>`forcefire` is true</li><li>The current [area](../../../Enums%20and%20IDs/librarystuff/Areas.md) is `GiantLair` while the current [map](../../../Enums%20and%20IDs/Maps.md) isn't `GiantLairFridgeInside`</li></ul>|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Fire](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|2|Happens if DoDamage 1 didn't|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|2|Happens if DoDamage 1 didn't|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/Plumpling.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ A single target jump attack.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)|{[BlockSoundOnly](../../Damage%20pipeline/DoDamage.md#blocksoundonly)}|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|{[BlockSoundOnly](../../Damage%20pipeline/DoDamage.md#blocksoundonly)}|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
6 changes: 4 additions & 2 deletions docs/Battle system/Enemy actions/Enemies/PrimalWeevil.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ A single target swipe attack that may hit twice.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|2|Happens only if at least one of the following is true:<ul><li>`commandsuccess` is true after DoDamage 1 (blocked, ignores FRAMEONE)</li><li>[HPPercent](../../Actors%20states/HPPercent.md) is less than 0.6</li></ul>|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|
|2|Happens only if at least one of the following is true:<ul><li>`commandsuccess` is true after DoDamage 1 (blocked, ignores FRAMEONE)</li><li>[HPPercent](../../Actors%20states/HPPercent.md) is less than 0.6</li></ul>|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|3|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/Ruffian.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ A single target arms slam attack.

|#|Conditions|enemyid|walkstate|attackstate|attackstate2|damage|offset|property|shake|delay|sounds|dontgettarget|
|-:|---------|-------|--------|------------|------------|------|-----|--------|-----|-----|------|-------------|
|1|Always happen|This enemy|1 (`Walk`)|100|101|3|(1.5, 0.0, -0.1)|[Flip](../../Damage%20pipeline/AttackProperty.md)|0.075|0.5 seconds|`RuffianKickShake,RuffianKickSwing`|false|
|1|Always happen|This enemy|1 (`Walk`)|100|101|3|(1.5, 0.0, -0.1)|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|0.075|0.5 seconds|`RuffianKickShake,RuffianKickSwing`|false|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/TermiteNasute.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ A single target slash attack.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/TermiteSoldier.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ A single target slash attack.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|4|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/WaspKing.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ A single target axe slash attack.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|5 (6 instead if `locktri` is true which means the phase transition in the pre move logic occured before)|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|5 (6 instead if `locktri` is true which means the phase transition in the pre move logic occured before)|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ A single target axe slash attack.

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|5|[Flip](../../Damage%20pipeline/AttackProperty.md)|null|`commandsuccess`|
|1|Always happen|This enemy|`playertargetID` after [GetSingleTarget](../../Actors%20states/Targetting/GetRandomAvaliablePlayer.md#getsingletarget)|5|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|null|`commandsuccess`|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
4 changes: 3 additions & 1 deletion docs/Battle system/Enemy actions/Enemies/Zombeetle.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ A party wide dash attack.

|#|Conditions|caller|damage|property|block|jumpheight|spinammount|jumpevenonblock|overrides|
|-:|---------|-----|-------|-------|-----|----------|-----------|--------------|---------|
|1|Always happen|This enemy|4|[Flip](../../Damage%20pipeline/AttackProperty.md)|`commandsuccess`|0.0|Vector3.zero|false|null|
|1|Always happen|This enemy|4|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|`commandsuccess`|0.0|Vector3.zero|false|null|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

### Logic sequence

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ private IEnumerator LongLeg(EntityControl entity, MainManager.BattleData target)

|#|Conditions|attacker|target|damageammount|property|overrides|block|
|-:|---|---|---|---|---|---|---|
|1_a|target is a player party member|null|`playerdata[playertargetID]`|6|[Flip](../../Damage%20pipeline/AttackProperty.md)|empty array|`commandsuccess`|
|1_a|target is a player party member|null|`playerdata[playertargetID]`|6|[Flip](../../Damage%20pipeline/AttackProperty.md)<sup>1</sup>|empty array|`commandsuccess`|
|1_b|target is an enemy party member|null|target enemy party member|6|[Flip](../../Damage%20pipeline/AttackProperty.md)|empty array|false|

1: This property gets overriden to null in [CalculateBaseDamage](../../Damage%20pipeline/CalculateBaseDamage.md) as the target is a player party member so it does nothing.

Here is its logic:

- `dontusecharge` set to true
Expand Down

0 comments on commit 2b6014f

Please sign in to comment.