adamkali / adamkali/MiraculousKingdom

Stratgems, Sabotage, RollModifiers, TokenModifiers and Favor.

Đang mở
#26 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

These resaurces will need to be added before we get to `1.0.0` release

they live in the character as there own fields and be used to change the way that people play. this will be the last thing that I implement before testing.

the modifiers will live as the follewing

```rust
pub struct RollModifier {
pub modifier_might: MightEnum,
pub modifier: i8,
}

pub struct TokenModifier {
pub modifier_might: MightEnum,
pub modifier: i8,
}

pub struct Sabotage {
pub amount: i8,
}

pub struct Strategems {
pub amount: i8,
}

pub struct Favor {
pub amount: i8,
}

pub enum Modifiers {
Strategems,
Sabotage,
TokenModifier,
MightModifier,
}

pub trait RollModifier {
fn activate_modifier(self, roll: &mut RollRequest);
}
```

- [ ] add each resource to the polling section
- [ ] add the trait to the traits file
- [ ] impl the trait to the modifers
- [ ] have the RollRequest hold a `Vec`
- [ ] have it called on the roll be modified initially by only the caller at first
- [ ] have the modifiers be called first
- [ ] have the vector activate in this order Sabotage, Strategems, RollModifiers, and TokenModifiers
- [ ] if there is a sabotage call the `roll_20_sided_dice` twice and take the lowest one
- [ ] if there is a strategem call the `roll_20_sided_dice` twice and take the highest one

get to theis point and then I will add tasks

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.