Skip to content

Conversation

@clevernt
Copy link
Contributor

@clevernt clevernt commented Oct 8, 2024

No description provided.

missing last part of passive, enemy wave isn't supported
and rename listener
@clevernt clevernt marked this pull request as ready for review October 8, 2024 17:17
energyAmt := 7.5 + 2.5*float64(lc.Imposition)
engine.Events().BattleStart.Subscribe(func(event event.BattleStart) {
for _, char := range engine.Characters() {
engine.ModifyEnergy(info.ModifyAttribute{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be ModifyEnergyFixed as it ignores ER

Comment on lines +67 to +74
// Restore 1 SP if BE >= 150%
if mod.OwnerStats().BreakEffect() >= 1.5 {
mod.Engine().ModifySP(info.ModifySP{
Key: psim,
Source: mod.Owner(),
Amount: 1,
})
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: restore SP last

amt := 0.2 + 0.04*mod.State().(float64)
for _, char := range mod.Engine().Characters() {
mod.Engine().AddModifier(char, info.Modifier{
Name: psim,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to separate main modifier (which contains main logic, is not considered a buff and doesn't have a duration) and this modifier (which is considered a dispellable buff and has a duration)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants