-
-
Save todorok1/f3fa34653852acbe9eb289e9c1e61ae3 to your computer and use it in GitHub Desktop.
シンプルRPGチュートリアル第75回 味方キャラクターのステータスをセットアップするクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// パーティの所持アイテムをセットします。 | |
| /// </summary> | |
| void SetPartyItems() | |
| { | |
| CharacterStatusManager.partyItemInfoList = _partyItemInfoList; | |
| } | |
| /// <summary> | |
| /// レベルに応じた経験値の値を取得します。 | |
| /// </summary> | |
| int GetExp(int level) | |
| { | |
| int exp = 0; | |
| var expTable = CharacterDataManager.GetExpTable(); | |
| if (expTable == null) | |
| { | |
| return exp; | |
| } | |
| var expRecord = expTable.expRecords.Find(record => record.level == level); | |
| if (expRecord != null) | |
| { | |
| exp = expRecord.exp; | |
| } | |
| return exp; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment