Skip to content

Commit

Permalink
detatoko-world: 「でたとこワールドツアー」クラス・敵NPCポジション・スタンス追加
Browse files Browse the repository at this point in the history
  • Loading branch information
koi-chan committed Jan 30, 2018
1 parent 29de29a commit 675f217
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
5 changes: 2 additions & 3 deletions lib/rgrb/plugin/trpg/detatoko/constants.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# vim: fileencoding=utf-8

require 'rgrb/plugin/trpg/detatoko/gamedatas'

module RGRB
module Plugin
Expand All @@ -17,10 +18,8 @@ class IrcAdapter
LCSIDS_RE = /(#{LCSID_RE}(?: +#{LCSID_RE})*)/
# コマンドのパターンの最後を表す正規表現
END_RE = /(?:[\s ]|$)/
# 使用可能なスタンス
STANCES = %w(敵視 宿命 憎悪 雲上 従属 不明)
# スタンス系統にマッチする正規表現
STANCE_RE = /(?:#{STANCES.join('|')}|全部|[・+\+])+/
STANCE_RE = /(?:#{Generator::STANCES.keys.join('|')}|全部|[・+\+])+/
end
end
end
Expand Down
18 changes: 15 additions & 3 deletions lib/rgrb/plugin/trpg/detatoko/gamedatas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ class Generator
}

# スタンス表を定義する
# 敵視~不明:基本
# 関係・意思:ワールドツアー
STANCES = {
'敵視' => %w(邪魔 好敵手 標的 使命 異世界召喚 討伐者),
'宿命' => %w(救済 神託 あの人は今 風来坊 自己投影 嵐の予兆),
'憎悪' => %w(暗い目 悪を憎む 劣等感 怨念 裏切り 復讐),
'雲上' => %w(怯え 小市民 懊悩 嘆願 世捨て人 誰それ?),
'従属' => %w(隷従 呪縛 勘違い 弱肉強食 居場所 心酔),
'不明' => %w(野心の炎 大いなる御方 戯れ 好奇心 天秤 超越)
'不明' => %w(野心の炎 大いなる御方 戯れ 好奇心 天秤 超越),
'関係' => %w(知りたい この手に 好敵手 追求 誰がために 負の因縁),
'意思' => %w(あの舞台に 誇り高き義務 栄光の階 引退者 恐怖の主 猫か虎か)
}

# クラス表
Expand All @@ -56,7 +60,12 @@ class Generator
# ダークネス
'ニンジャ' => 0,
'貴族' => 3,
'死霊' => 8
'死霊' => 8,
# ワールドツアー
'探偵' => 1,
'サムライ' => 5,
'シャーマン' => 7,
'アイドル' => 9
}

# ポジション
Expand All @@ -66,12 +75,15 @@ class Generator
冒険者 凡人 夢追い 神話の住人 負け犬 守護者 悪党 カリスマ 修羅
遊び人 従者 正体不明 迷い子 生ける伝説 罪人 傷追人 型破り 裏の住人
),
# フロンティア・ダークネス
# フロンティア・ダークネス・ワールドツアー
# 敵NPCポジション
:npc => %w(
裏切者 帝王 悪の化身 黒幕 災厄 侵略者
妨害者 愚物 慈母 世界 いわくつき
対立者 標的 執行者 導き手
),
# ダークネス
# 悪のポジション
:dark => %w(
悪の華 堕落者 幹部 トリックスター 無能 支配者
狂的天才 必要悪 外道 野獣 死の使い 破滅の因子
Expand Down
2 changes: 1 addition & 1 deletion lib/rgrb/plugin/trpg/detatoko/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def character_class
# ポジションを1つ選ぶ
# @param [Symbol] type 用途
# @option type :pc PC のポジション
# @option type :npc NPC のポジション
# @option type :npc NPC のポジション
# @option type :dark 悪のポジション
# @return [String]
def position(type)
Expand Down

0 comments on commit 675f217

Please sign in to comment.