syfoud / syfoud/Simulated_Scepter

[Feature] 弹指骰面行为优化

Open
#121 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
568
Forks
10
Avg merge
19h 42m
Merged PRs (30d)
48

Description

建议类型

新功能

背景 & 动机

1.每个骰面在任何重投时都会重复计算路径,例如当多次使用重投投出各种骰面时(例如可憎归心慈怀等常出现的三蓝),仍然会重新计算路径重复耗时
2.

解决方案

1.单个骰面只计算一次,避免重复耗时,当在同一个位置使用重投却投出了同样的骰面时,不再重复计算路径,直接使用重投/作弊切换至下一个骰面(若需判断重投作弊剩余数,至少也可以在拥有作弊时单骰面只计算一次)
2.

备选方案

使用场景
1.与觐见装置交互后的骰面选择
2.
补充信息

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the interaction with the 觐见装置 and the code that calculates paths for each dice face. Trace reroll and cheat handling for repeated faces at the same position. Done means each face is path-calculated only once per interaction while rerolls still switch to the next face correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.