Modeling Events, Event Exclusive Attacks, and Event Items
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
Không có tệp, bài kiểm thử hoặc điểm vào nào được nêu. Trước tiên, hãy làm rõ việc di chuyển sự kiện và mô hình dữ liệu vật phẩm, cũng như hành vi của API; sau đó xác định các model sự kiện và model vật phẩm Pokémon hiện có. Công việc được xem là hoàn tất khi dự án có một cách biểu diễn đã thống nhất cho các chiêu thức độc quyền của sự kiện, các moveset sự kiện đầy đủ và các vật phẩm dành riêng cho sự kiện.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
As suggested by @Naramsim here, and now that the API is being set up to include one time events, I wanted to do some thinking on how event exclusive moves are included.
We'll use the Pokecenter New York Wish Eggs as an example, as they are very well documented.
These pokemon have both:
- A unique method of obtaining them (event)
- Unique moves that can only be obtained from said event.
The way I've modeled events in #1417 is that each event has a unique encounter method.
I am of the opinion that it's the right idea to also give each event an identically titled move method identifier, to show what moves the Pokémon comes with from the event
So in this case, any of the wish eggs would have the encounter_method AND pokemon_move_method as:
new-york-pokecenter-wish-eggs
There is a world where there's a generic identifier called "event", but I think that's less ideal or else "special" moves can all get lumped together in a way where no one could tell where they came from.
I would also be a proponent of documenting a Pokemons entire moveset on event receipt this way, even if they have no moves unique to said event. Sometimes Pokemon can come with egg moves or TMs that would make them slightly easier to train/plan teams for. In addition to that, it makes for a more complete documentation of what the event was, and what a player gets when they receive that Pokemon.
As an example, Chansey would look like this:
113,3,273,12,0,,- Wish, move method 12 would benew-york-pokecenter-wish-eggs.113,3,230,12,0,,- Sweet scent
The last thing to discuss is items, and it's here that I am unsure. Chansey does not have an item, it comes as an egg. So let's look at Jirachi from the us colosseum bonus disc.
It has a 50% chance to hold a ganlon berry or a salac berry. However, internally in gen 3, if you find a wild jirachi (which is impossible without glitches or hacks), it will hold a star piece. In practice, this information is useless since it won't happen in regular gameplay.
However, it's factually true. You can use glitches to get any Pokemon to spawn, and Jirachi will have this item. Right now pokemon_items is set up like this:
pokemon_id,version_id,item_id,rarity.
I do see some Pokemon have duplicate items here, like Bibarel has a 50% chance for an Oran Berry and a 5% chance for a Sitrus. But for an event case, we would want a specific encounter location or encounter method that's shown to show a different item than usual. I think this would require more than just new rows right? The API would need a new event item column or something.
Thoughts?
- Ngôn ngữ chính
- Python
- Star
- 5.4k
- Fork
- 1.2k
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 18
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PokeAPI/pokeapi
-
Blank past ability entries Đang mở
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 76/100
-
openapi integers range. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
UV hardlink files Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
-
Ball legality Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Tất cả issue của PokeAPI/pokeapi
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
-
hcocena Đang mởpolicies-accepted pre-review precheck-passed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Bioconductor/BiocContributions#214 · 5 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
TencentCloud/Octop#1169 · 1 bình luận ·
-
[开源推荐] 在老板拷问你之前,先让 AI 灵魂拷问你 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
521xueweihan/HelloGitHub#3778 ·
-
The version checker's trailing attribute region has no control for a less-than inside a quoted value Đang mởarea: dashboard area: tests bug perceived difficulty: 2 python
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Nitjsefnie-Harness-Commons/daedalus#1105 · 1 bình luận ·