Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ステータスの概念を導入 #91

Merged
merged 5 commits into from
Mar 9, 2014
Merged

ステータスの概念を導入 #91

merged 5 commits into from
Mar 9, 2014

Conversation

karihei
Copy link
Contributor

@karihei karihei commented Mar 3, 2014

ステータスを大きく分けて2種類に分類。
・STR, CON, INTなどの基礎ステータス( baseStatus )
・攻撃力、HP、BPなど 基礎ステータスを元に決定されるステータス ( 呼称募集中 )

レベルが上がると基礎ステータスが上がる。
それに応じて攻撃力とかも上がる。

ステ振りは未実装。

@@ -202,7 +202,8 @@ Mob.prototype.shortRangeAttack = function() {
// TODO: 範囲内に対象がいるかどうかチェックする

// ダメージテキトー
var damage = -10 + Math.floor(-10 * Math.random());
var damage = -Math.floor(this.model.attack / 2 + this.model.attack / 2 * Math.random()
- this.hateTarget.model.defence / 4);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ダメージ計算にentityのステータスが影響するようにしてみた。計算式はテキトー(ドラクエ式らしい)

@nise-nabe
Copy link
Contributor

いいね

@karihei
Copy link
Contributor Author

karihei commented Mar 9, 2014

セルフマージします

karihei added a commit that referenced this pull request Mar 9, 2014
@karihei karihei merged commit 514a263 into master Mar 9, 2014
@karihei karihei deleted the feature/base-status branch March 9, 2014 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants