Character Enhancement
이 데모에 대하여
데모는 익명 계정으로 자동 로그인합니다. 이 계정은 쇼룸의 모든 데모에서 공유되므로 한 데모에서 얻은 아이템이나 재화가 다른 데모에도 반영됩니다. 로딩에 약간 시간이 걸립니다. 화면이 작다면 새 탭에서 열어 사용해 보세요.
개요
Spend enhancement materials to give a character experience. There are two materials, potion (worth 300 experience) and elixir (worth 1000), and each enhancement has a 20% chance of a great success that grants 1.5 times the experience. Recruit a character, get some materials, then spend them on the character’s row.
체험 방법
- Under Recruit a character, press Recruit next to Recruit knight (or another character) to get a character.
- Press Get under Materials to add one of that material (the row reads, for example,
potion x1). - On the character’s row under Spend materials to level up, press Enhance with potion; one
potionis consumed, the character gains 300 experience (450 on a great success), and Level rises from1/10. - Press Enhance with elixir to consume one
elixirfor 1000 experience (1500 on a great success). - Pressing an enhance button without the material fails because there is not enough material.
사용하는 GS2 서비스
- GS2-Enhance: GS2-Enhance’s
Basicrate adds the experience written in the material’s metadata (300 forpotion, 1000 forelixir) to the target character, with a bonus of 1.5x at 20% and 1x at 80%. - GS2-Inventory: GS2-Inventory holds two inventories: the
Characterinventory with the recruited characters, and theCharacterEnhanceMaterialsimple inventory with the material counts. - GS2-Experience: GS2-Experience keeps each character’s experience, level and level cap (10); the experience added by enhancing raises the level.
- GS2-Exchange: GS2-Exchange rate models define the buttons: Get acquires a material (
Gs2Inventory:AcquireSimpleItemsByUserId), and Enhance with potion and Enhance with elixir run an enhancement with that material (Gs2Enhance:DirectEnhanceByUserId), each as a free server-side transaction.
GS2 Studio에서 사용하기
GS2 Studio의 Simple 모드에서 Add features 를 열고 Character Enhancement 의 Add 를 누르면 이 기능을 자신의 프로젝트에 가져올 수 있습니다. 패키지를 직접 지정하려면 Add from GitHub 를 선택하고 아래 패키지를 입력합니다.
https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-character-enhance/packages/micro-economy-character-enhance- Owner:
gs2io - Repository:
gs2-studio-package - Subdirectory:
micro-economy-character-enhance/packages/micro-economy-character-enhance