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.

체험 방법

  1. Under Recruit a character, press Recruit next to Recruit knight (or another character) to get a character.
  2. Press Get under Materials to add one of that material (the row reads, for example, potion x1).
  3. On the character’s row under Spend materials to level up, press Enhance with potion; one potion is consumed, the character gains 300 experience (450 on a great success), and Level rises from 1/10.
  4. Press Enhance with elixir to consume one elixir for 1000 experience (1500 on a great success).
  5. Pressing an enhance button without the material fails because there is not enough material.

사용하는 GS2 서비스

  • GS2-Enhance: GS2-Enhance’s Basic rate adds the experience written in the material’s metadata (300 for potion, 1000 for elixir) to the target character, with a bonus of 1.5x at 20% and 1x at 80%.
  • GS2-Inventory: GS2-Inventory holds two inventories: the Character inventory with the recruited characters, and the CharacterEnhanceMaterial simple 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

소스 코드