Start of Concourse setup + early start on reward system
This commit is contained in:
parent
f21f574ebb
commit
f930d67562
25
.concourse.yml
Normal file
25
.concourse.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
jobs:
|
||||||
|
- name: build-blastmud-image
|
||||||
|
public: true
|
||||||
|
plan:
|
||||||
|
- get: blastmud-repo
|
||||||
|
trigger: true
|
||||||
|
- task: build
|
||||||
|
config:
|
||||||
|
platform: linux
|
||||||
|
image_resource:
|
||||||
|
type: registry-image
|
||||||
|
source:
|
||||||
|
repository: rust
|
||||||
|
run:
|
||||||
|
path: echo
|
||||||
|
args: ["Hello", "world!"]
|
||||||
|
resources:
|
||||||
|
- name: blastmud-repo
|
||||||
|
type: git
|
||||||
|
check_every: never
|
||||||
|
webhook_token: ((webhook_token))
|
||||||
|
source:
|
||||||
|
uri: https://git.blastmud.org/blasthavers/blastmud.git
|
||||||
|
branch: main
|
||||||
|
|
@ -62,6 +62,11 @@ pub struct NPCSayInfo {
|
|||||||
pub talk_type: NPCSayType
|
pub talk_type: NPCSayType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub struct KillBonus {
|
||||||
|
pub msg: &'static str,
|
||||||
|
pub payment: u64,
|
||||||
|
}
|
||||||
|
|
||||||
pub struct NPC {
|
pub struct NPC {
|
||||||
pub code: &'static str,
|
pub code: &'static str,
|
||||||
pub name: &'static str,
|
pub name: &'static str,
|
||||||
@ -77,7 +82,8 @@ pub struct NPC {
|
|||||||
pub total_xp: u64,
|
pub total_xp: u64,
|
||||||
pub total_skills: BTreeMap<SkillType, f64>,
|
pub total_skills: BTreeMap<SkillType, f64>,
|
||||||
pub species: SpeciesType,
|
pub species: SpeciesType,
|
||||||
pub wander_zones: Vec<&'static str>
|
pub wander_zones: Vec<&'static str>,
|
||||||
|
pub kill_bonus: Option<KillBonus>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for NPC {
|
impl Default for NPC {
|
||||||
@ -98,7 +104,8 @@ impl Default for NPC {
|
|||||||
aggression: 0,
|
aggression: 0,
|
||||||
intrinsic_weapon: None,
|
intrinsic_weapon: None,
|
||||||
species: SpeciesType::Human,
|
species: SpeciesType::Human,
|
||||||
wander_zones: vec!()
|
wander_zones: vec!(),
|
||||||
|
kill_bonus: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use super::NPC;
|
use super::{NPC, KillBonus};
|
||||||
use crate::models::item::Pronouns;
|
use crate::models::item::Pronouns;
|
||||||
use crate::static_content::{
|
use crate::static_content::{
|
||||||
possession_type::PossessionType,
|
possession_type::PossessionType,
|
||||||
@ -19,6 +19,10 @@ macro_rules! dog {
|
|||||||
spawn_location: concat!("room/", $spawn),
|
spawn_location: concat!("room/", $spawn),
|
||||||
intrinsic_weapon: Some(PossessionType::Fangs),
|
intrinsic_weapon: Some(PossessionType::Fangs),
|
||||||
species: SpeciesType::Dog,
|
species: SpeciesType::Dog,
|
||||||
|
kill_bonus: Some(KillBonus {
|
||||||
|
msg: "On your wristpad: Thank you for helping Melbs with animal control! Here's your fee.",
|
||||||
|
payment: 100,
|
||||||
|
}),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user