Skip to content

Commit

Permalink
update...
Browse files Browse the repository at this point in the history
  • Loading branch information
Junco committed Dec 21, 2024
1 parent 411acd4 commit e695a55
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions js/conditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ const conditions = {
},
effectSummary: '心生色聚',
effects: function (causes) {
// TODO: implement
return [9301, 9302, 9303, 9304, 9305, 9306, 9307, 9308];
},
group: '名俱生组',
Expand All @@ -224,8 +223,27 @@ const conditions = {
{
cause: ['名', '色', '涅槃'],
effect: '名',
causes: [],
effects: [], // 名+18 完成色→8 貪;名→8 大善+4 三因唯作;涅槃→8 出世間心+4 三因大善+三因唯作
causes: ['名色', '名', '涅槃'],
expand: function (cause) {
if (cause === '名色') {
return [Array.from({length: 89}, (_, i) => i + 1).concat(Array.from({length: 18}, (_, i) => i + 9001))];
} else if (cause === '名') {
return [Array.from({length: 89}, (_, i) => i + 1)];
} else {
return [[0]];
}
},
effectSummary: '名聚',
effects: function (causes) {
if (causes.length === 1){
return [];
} else if (causes.length === 89) {

} else {

}

}, // 名+18完成色→8貪;名→8大善+4三因唯作;涅槃→8出世間心+4三因大善+三因唯作
group: '所缘组',
note: '极重视、尊重、执着的可意所缘作为名聚的增上缘'
},
Expand Down

0 comments on commit e695a55

Please sign in to comment.