Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Crimson Moon's Semblance #2164

Merged
merged 2 commits into from
May 28, 2024

Conversation

Siwat-Keng
Copy link
Contributor

@Siwat-Keng Siwat-Keng commented May 3, 2024

Weapon PR checklist:

  • New weapon package
  • Config in weapon package
  • Run pipeline with added config (generates weapon curve, .generated.json files)
  • Weapon key
  • Shortcuts for weapon key
  • Add weapon package to imports
  • Weapon passive (might include an attack)
  • Update documentation

@Siwat-Keng Siwat-Keng force-pushed the add-crimsonmoonssemblance branch 3 times, most recently from c9da804 to e5530ee Compare May 4, 2024 03:52
@Siwat-Keng Siwat-Keng requested a review from srliao May 28, 2024 02:21
Base: modifier.NewBaseWithHitlag("crimsonmoonssemblance-bonus", -1),
AffectedStat: attributes.DmgP,
Amount: func() ([]float64, bool) {
maxhp := char.MaxHP()
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this maxhp store here seems unnecessary

maxhp := char.MaxHP()
m[attributes.DmgP] = 0.0
if char.CurrentHPDebt() > 0 {
m[attributes.DmgP] += 0.08 + 0.04*float64(refine)
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this calculation should probably just be done once and stored outside? although I'm actually curious which is better: storing this in a variable that I'm assuming is not on the stack or just redoing this simple calc

@srliao srliao merged commit e04b111 into genshinsim:main May 28, 2024
3 checks passed
Charlie-Zheng pushed a commit to Charlie-Zheng/gcsim that referenced this pull request Jun 12, 2024
* add Crimson Moon's Semblance

* refactor crimsonmoonssemblance
Charlie-Zheng pushed a commit to Charlie-Zheng/gcsim that referenced this pull request Jun 14, 2024
* add Crimson Moon's Semblance

* refactor crimsonmoonssemblance
imring added a commit that referenced this pull request Jun 20, 2024
* initial arlecchino commit

* Updated NA frames

* Updated CA frames

* Updated Skill frames

* Updated Burst frames

* Updated Plunge frames

* Updated N0 frames

* Added Arlecchino shortcut

* Update mode-gcsim.js for new char shortcut

* Adjust burst and c2 AoE

* Adjust skill aoe

* Adjusted Hitboxes for offsets for NA/CA/Q/E/C2

* Removed incorrect comment

* Adjusted Burst heal comment

* Added C2 Damage delay frames

* Added AoE data

* Added frames documentation

* Added hitlag documentation

* Added nickname documentation

* Added param documentation

* Adjusted directive absorb AoE

* Moved location of absorbDirective func

* Added early cancel for CA

* Moved absorbDirectives func to skill.go

* Changed early_cancel to only work if the following action is Dash or Jump

* Fixed charge early cancel with swap not giving correct error

* reupload freminet and lynette frames (#2167)

* fix haran (#2162)

* Fixed overheal to be float64

* Removed swap CD change

* Fixed onSwap name

* Changed early cancel checks to happen in NextQueueItemIsValid

* exposes the current BoL and BoLratio of a character (#2169)

* apply beidou shield on skill tap (#2170)

* Clam and SoDP use total healing before BoL reduction. (#2161)

* fix echoes icd bug (#2166)

* fix echoes icd bug

* fix typo in echoes.go

* Added Missing BoL Documentation (#2172)

* exposes the current BoL and BoLratio of a character

* Updated documentation for BoL and BoL Ratio

* add Crimson Moon's Semblance (#2164)

* add Crimson Moon's Semblance

* refactor crimsonmoonssemblance

* add Fragment of Harmonic Whimsy (#2163)

* add Fragment of Harmonic Whimsy

* update fohw condition

* update shortcut

* use StatModIsActive

* add passive scaling to pipeline (#2173)

* add passive scaling to pipeline

* fix lint error

* fix linter issues from new linter version (#2175)

* nahida xq/yl n0 (#2171)

* NextQueueItemIsValid to use active char instead of next char (#2174)

* NextQueueItemIsValid to use active char instead of next char

* should pass in next char in NextQuestItemIsValid

* move implicit swap to evaluator to avoid skipping CanQueueAfter

* clean up comment

* Fixed NextQueueItemIsValid signature for Arlechinno

* Fix linting

* Renamed a1Directive to directiveScaling

* Removed getTotalAtk()

* Changed c6 buff to be hitlag extended

* Changed c6 to use a callback instead of a subscription

* Fixed redundant func

* Fixed long line of code

* Removed early cancelled flag in favour of checking the previous action and params

* Removed uneeded today

* Changed masque status duration to -1

* Added clarifying comment to switch behaviour

* fix c6

---------

Co-authored-by: soloxcx <58927267+soloxcx@users.noreply.github.com>
Co-authored-by: Keng <39216134+Siwat-Keng@users.noreply.github.com>
Co-authored-by: clevernt <Azozy2011.hd@gmail.com>
Co-authored-by: Liu Yihua <yihuajack@live.cn>
Co-authored-by: srl <906239+srliao@users.noreply.github.com>
Co-authored-by: imring <vitaliyvorobets25@gmail.com>
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.

None yet

2 participants