mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
[Double Cross 3rd] fix bugs and feature improvements
This commit is contained in:
@@ -192,6 +192,9 @@
|
||||
.sheet-reduction-section .sheet-ohter strong {display:block; position:relative; height:20px; line-height:20px; background:#000; color:#fff; text-align:center;}
|
||||
.sheet-reduction-section .sheet-ohter input[type="text"],
|
||||
.sheet-reduction-section .sheet-ohter input[type="number"] {height:20px; border-bottom:1px solid rgba(0,0,0,.1); text-align:center;}
|
||||
.sheet-reduction-title{position:relative;}
|
||||
.sheet-reduction-select{position:absolute; left:0; top:0; width:100%; height:100%; opacity:0; cursor:pointer;}
|
||||
.sheet-reduction-select option{text-align:center; font-size:13px; font-weight:400; line-height:1.4;}
|
||||
|
||||
.sheet-spec-group {display:block; position:relative; margin:30px -10px;}
|
||||
.sheet-spec-group:after {content:""; display:block; clear:both;}
|
||||
@@ -328,13 +331,13 @@
|
||||
.sheet-table .sheet-mark,
|
||||
.sheet-table .sheet-dot,
|
||||
.sheet-table .sheet-dist,
|
||||
.sheet-table .sheet-dot2,
|
||||
.sheet-table .sheet-full {width:60px;}
|
||||
.sheet-table .sheet-dam,
|
||||
.sheet-table .sheet-def,
|
||||
.sheet-table .sheet-arm,
|
||||
.sheet-table .sheet-act,
|
||||
.sheet-table .sheet-cost,
|
||||
.sheet-table .sheet-dot2,
|
||||
.sheet-table .sheet-exp {width:50px;}
|
||||
|
||||
.sheet-memo {display:block !important; height:400px !important; border:1px solid rgba(0,0,0,.1) !important;}
|
||||
|
||||
@@ -96,6 +96,8 @@
|
||||
<option value="12" data-i18n="i_syndrome_item_12">솔라리스</option>
|
||||
<option value="13" data-i18n="i_syndrome_item_13">우로보로스</option>
|
||||
<option value="14" data-i18n="i_syndrome_item_14">아자토스</option>
|
||||
<option value="15" data-i18n="i_syndrome_item_15">미스틸테인</option>
|
||||
<option value="16" data-i18n="i_syndrome_item_16">글레이프니르</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="sheet-item">
|
||||
@@ -115,6 +117,8 @@
|
||||
<option value="12" data-i18n="i_syndrome_item_12">솔라리스</option>
|
||||
<option value="13" data-i18n="i_syndrome_item_13">우로보로스</option>
|
||||
<option value="14" data-i18n="i_syndrome_item_14">아자토스</option>
|
||||
<option value="15" data-i18n="i_syndrome_item_15">미스틸테인</option>
|
||||
<option value="16" data-i18n="i_syndrome_item_16">글레이프니르</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="sheet-item">
|
||||
@@ -134,6 +138,8 @@
|
||||
<option value="12" data-i18n="i_syndrome_item_12">솔라리스</option>
|
||||
<option value="13" data-i18n="i_syndrome_item_13">우로보로스</option>
|
||||
<option value="14" data-i18n="i_syndrome_item_14">아자토스</option>
|
||||
<option value="15" data-i18n="i_syndrome_item_15">미스틸테인</option>
|
||||
<option value="16" data-i18n="i_syndrome_item_16">글레이프니르</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -184,7 +190,7 @@
|
||||
<input type="text" name="attr_money" value="(@{spec04}*2)+(@{spec04_02}*2)+@{money_bonus}" placeholder="0" readonly />
|
||||
|
||||
<!-- 보정 입력용 칸 (직접 입력 가능) -->
|
||||
<input type="number" name="attr_money_bonus" value="0" placeholder="0" title="D 로이스, 아이템, 이펙트 등으로 추가되는 상비화 포인트를 입력하세요."/>
|
||||
<input type="number" name="attr_money_bonus" value="0" placeholder="0" />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -234,7 +240,15 @@
|
||||
</div>
|
||||
|
||||
<div class="sheet-reduction-section">
|
||||
<div class="sheet-tit" data-i18n="i_reduction">침식치</div>
|
||||
<div class="sheet-tit sheet-reduction-title"> 침식치
|
||||
|
||||
<select name="attr_is_reduction" class="sheet-reduction-select">
|
||||
<option value="0">EA</option>
|
||||
<option value="1">코어</option>
|
||||
<option value="2">기원종</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="sheet-form">
|
||||
<input type="number" name="attr_add_reduction" value="0" placeholder="0" class="sheet-point" />
|
||||
<span>+</span>
|
||||
@@ -501,22 +515,27 @@
|
||||
<div class="sheet-flip-content">
|
||||
<div class="sheet-sub-title" data-i18n="i_d_lois">D 로이스</div>
|
||||
<div class="sheet-table">
|
||||
<div class="sheet-thead">
|
||||
<div class="sheet-row">
|
||||
<div class="sheet-dic"></div>
|
||||
<div class="sheet-no">No.</div>
|
||||
<div class="sheet-name" data-i18n="i_name">이름</div>
|
||||
<div data-i18n="i_effect_txt">효과</div>
|
||||
<div class="sheet-thead">
|
||||
<div class="sheet-row">
|
||||
<div class="sheet-dic"></div>
|
||||
<div class="sheet-no">No.</div>
|
||||
<div class="sheet-name" data-i18n="i_name">이름</div>
|
||||
<div data-i18n="i_effect_txt">효과</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sheet-row">
|
||||
<div class="sheet-dic"><button type="roll" class="sheet-dice" value="&{template:Dx3Dice} @{template_name} {{title=@{lois0_tit}}}{{subtitle=@{i_d_lois} | No.@{lois0_number}}}{{desc=@{lois0_desc}}}"></button></div>
|
||||
<div class="sheet-no"><input type="text" name="attr_lois0_number" value="" class="sheet-tac" /></div>
|
||||
<div class="sheet-name"><input type="text" name="attr_lois0_tit" value="" class="sheet-tac" /></div>
|
||||
<div><input type="text" name="attr_lois0_desc" value="" /></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sheet-tbody">
|
||||
<fieldset class="repeating_dlois">
|
||||
<div class="sheet-row">
|
||||
<div class="sheet-dic"><button type="roll" class="sheet-dice"value="&{template:Dx3Dice} @{template_name}{{title=@{dlois_tit}}}{{subtitle=@{i_d_lois} | No.@{dlois_number}}}{{desc=@{dlois_desc}}}"></button></div>
|
||||
|
||||
<div class="sheet-no"><input type="text" name="attr_dlois_number" value="" class="sheet-tac" /></div>
|
||||
<div class="sheet-name"><input type="text" name="attr_dlois_tit" value="" class="sheet-tac" /></div>
|
||||
<div><input type="text" name="attr_dlois_desc" value="" /></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sheet-sub-title" data-i18n="i_e_lois">E 로이스</div>
|
||||
<div class="sheet-table">
|
||||
@@ -534,7 +553,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="sheet-tbody">
|
||||
<fieldset class="repeating_easyeffect">
|
||||
<fieldset class="repeating_elois">
|
||||
<div class="sheet-table-item">
|
||||
<input type="hidden" class="sheet-chk-flip" name="attr_elois_eff_view" value="" />
|
||||
<div class="sheet-row">
|
||||
@@ -1189,9 +1208,60 @@
|
||||
<!-- 스크립트 작업 -->
|
||||
|
||||
<script type="text/worker">
|
||||
function getreduction_effect(type) {
|
||||
function getreduction_effect(type, is_reduction) {
|
||||
var data = {0:0,1:0}; // 1 - 다이스 / 2 - 이펙트 레벨
|
||||
|
||||
/* 기원종 전용 */
|
||||
if (is_reduction == 2) {
|
||||
if (type >= 80) { // 침식치 80 이상
|
||||
data[1] = 1;
|
||||
}
|
||||
if (type >= 100) { // 침식치 100 이상
|
||||
data[1] = 2;
|
||||
}
|
||||
if (type >= 150) { // 침식치 150 이상
|
||||
data[1] = 3;
|
||||
}
|
||||
if (type >= 200) { // 침식치 200 이상
|
||||
data[1] = 4;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
/* 코어 */
|
||||
if (is_reduction == 1) {
|
||||
if(type >= 60) { // 침식치 60 이상
|
||||
data[0] = 1;
|
||||
}
|
||||
if(type >= 80) { // 침식치 80 이상
|
||||
data[0] = 2;
|
||||
}
|
||||
if(type >= 100) { // 침식치 100 이상
|
||||
data[0] = 3;
|
||||
data[1] = 1;
|
||||
}
|
||||
if(type >= 130) { // 침식치 130 이상
|
||||
data[0] = 4;
|
||||
}
|
||||
if(type >= 160) { // 침식치 160 이상
|
||||
data[0] = 5;
|
||||
data[1] = 2;
|
||||
}
|
||||
if(type >= 200) { // 침식치 200 이상
|
||||
data[0] = 6;
|
||||
}
|
||||
if(type >= 240) { // 침식치 240 이상
|
||||
data[0] = 7;
|
||||
}
|
||||
if(type >= 300) { // 침식치 300 이상
|
||||
data[0] = 8;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
/* 기본(EA) */
|
||||
if(type >= 60) { // 침식치 60 이상
|
||||
data[0] = 1;
|
||||
}
|
||||
@@ -1342,19 +1412,21 @@
|
||||
});
|
||||
});
|
||||
|
||||
on("change:reduction change:reduction_max change:base_reduction change:add_reduction", function() {
|
||||
getAttrs(["reduction", "reduction_max", "base_reduction", "add_reduction"], function(values) {
|
||||
on("change:reduction change:reduction_max change:base_reduction change:add_reduction change:is_reduction", function() {
|
||||
getAttrs(["reduction", "reduction_max", "base_reduction", "add_reduction", "is_reduction"], function(values) {
|
||||
|
||||
// 최종 침식치
|
||||
var b_reduction = values.base_reduction * 1;
|
||||
var t_reduction = b_reduction + (values.add_reduction *1);
|
||||
if (values.reduction * 1 !== t_reduction) {
|
||||
setAttrs({reduction:t_reduction});
|
||||
}
|
||||
var chk_reduction = t_reduction > values.reduction_max ? values.reduction_max : t_reduction;
|
||||
setAttrs({hide_reduction:chk_reduction});
|
||||
|
||||
// 침식치 별 수정 효과 (이펙트 레벨 및 최종 다이스 효과)
|
||||
// -- 이펙트 다이스 효과는 콤보에서만 설정하도록 한다.
|
||||
var red_effect = getreduction_effect(t_reduction);
|
||||
var red_effect = getreduction_effect(t_reduction, values.is_reduction * 1);
|
||||
var add_dice = red_effect[0]; // 판정 다이스 업
|
||||
var add_lv = red_effect[1]; // 이펙트 레벨업
|
||||
|
||||
@@ -1364,8 +1436,8 @@
|
||||
// 2) 추가 다이스
|
||||
setAttrs({add_dice:add_dice});
|
||||
|
||||
let max = values.reduction_max;
|
||||
let now = values.reduction;
|
||||
let max = values.reduction_max * 1 || 0;
|
||||
let now = t_reduction;
|
||||
let pers = (now == 0 || max == 0) ? 0 : now/max*100;
|
||||
pers = Math.floor(pers);
|
||||
setAttrs({reduction_per: pers});
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
"i_memo": "메모",
|
||||
"i_syndrome_item_1": "엔젤 헤일로",
|
||||
"i_syndrome_item_2": "발로르",
|
||||
"i_syndrome_item_3": "블랙 독",
|
||||
"i_syndrome_item_3": "블랙독",
|
||||
"i_syndrome_item_4": "브람 스토커",
|
||||
"i_syndrome_item_5": "키마이라",
|
||||
"i_syndrome_item_6": "엑자일",
|
||||
@@ -69,7 +69,8 @@
|
||||
"i_syndrome_item_12": "솔라리스",
|
||||
"i_syndrome_item_13": "우로보로스",
|
||||
"i_syndrome_item_14": "아자토스",
|
||||
|
||||
"i_syndrome_item_15": "미스틸테인",
|
||||
"i_syndrome_item_16": "글레이프니르",
|
||||
"i_life_path": "라이프패스",
|
||||
"i_birth": "출생",
|
||||
"i_experience": "경험",
|
||||
@@ -96,7 +97,6 @@
|
||||
"i_defen": "방어구",
|
||||
"i_vehicle": "비클",
|
||||
"i_disposable_item": "일회성 아이템",
|
||||
|
||||
"i_titas": "타이터스",
|
||||
"i_titas_action_0": "행동판정 다이스 +10개",
|
||||
"i_titas_subj_0": "판정 직전 선언",
|
||||
@@ -116,7 +116,6 @@
|
||||
"i_titas_subj_4": "언제든 선언",
|
||||
"i_titas_desc_4": "불리한 효과 제거",
|
||||
"i_titas_side_4": "BS, 다이스 등 범위는 GM과 협의",
|
||||
|
||||
"i_effect": "이펙트",
|
||||
"i_easy_effect": "이지 이펙트",
|
||||
"i_base_effect_01_tit": "리저렉트",
|
||||
@@ -124,13 +123,12 @@
|
||||
"i_base_effect_01_tar": "자신",
|
||||
"i_base_effect_01_dis": "지근",
|
||||
"i_base_effect_01_reu": "효과참조",
|
||||
"i_base_effect_01_eff": "스스로 입은 손상을 회복하는 이펙트. 당신이 전투 불능이 되었을 때나 씬 종료 시 사용한다. 당신은 전투 불능을 회복하고 HP를 LVD10만큼 회복한다. 회복한 HP만큼 침식치가 상승한다. 이 이펙트는 침식치 100% 이상에서는 사용할 수 없다. 이 이펙트는 중압을 받아도 사용할 수 있다.",
|
||||
"i_base_effect_01_eff": "당신이 전투불능이 되었을 때, 혹은 씬을 마칠 때 사용한다. 당신은 전투불능을 회복하고 HP를 (LV)D점 회복한다. 회복한 HP와 같은 수치만큼 당신의 침식치가 상승한다. 이 이펙트는 침식치 100% 이상일 때는 사용할 수 없다. 이 이펙트는 중압을 입었을 때에도 사용할 수 있다.",
|
||||
"i_base_effect_02_tit": "워딩",
|
||||
"i_base_effect_02_tim": "오토액션",
|
||||
"i_base_effect_02_tar": "장면",
|
||||
"i_base_effect_02_tar": "씬",
|
||||
"i_base_effect_02_dis": "시야",
|
||||
"i_base_effect_02_har": "자동",
|
||||
"i_base_effect_02_eff": "비 오버드를 무력화 한다.",
|
||||
|
||||
"i_base_effect_02_eff": "언제든 사용할 수 있다. 씬에 등장한 비 오버드 캐릭터는 전원 엑스트라가 된다. 반대로 씬에 등장한 오버드는 워딩의 사용을 자동으로 알아차리게 된다. 이 이펙트의 효과는 씬 동안 지속된다.",
|
||||
"i_recommend_lois": "추천 로이스"
|
||||
}
|
||||
Reference in New Issue
Block a user