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

The Object can represent invalid game states #2

Open
mrillusi0n opened this issue Jun 21, 2023 · 1 comment
Open

The Object can represent invalid game states #2

mrillusi0n opened this issue Jun 21, 2023 · 1 comment

Comments

@mrillusi0n
Copy link
Contributor

The existing Object structure can be used to create invalid game objects. For example, a Bear that is a consumable.

Object {
    label: vec!["Bear".to_string()],
    description: "A bear (enemy)".to_string(),
    location: Some(LOC_CAVE),
    destination: None,
    item: false,
    enemy: true,
    health: Some(100),
    attack: Some(20),
    consumable: true,
},
@master-of-none
Copy link
Owner

Looks like this has been changed in the new PR

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

No branches or pull requests

2 participants