Start of Concourse setup + early start on reward system

This commit is contained in:
Condorra 2023-02-08 22:35:05 +11:00
parent f21f574ebb
commit f930d67562
3 changed files with 39 additions and 3 deletions

25
.concourse.yml Normal file
View 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

View File

@ -62,6 +62,11 @@ pub struct NPCSayInfo {
pub talk_type: NPCSayType
}
pub struct KillBonus {
pub msg: &'static str,
pub payment: u64,
}
pub struct NPC {
pub code: &'static str,
pub name: &'static str,
@ -77,7 +82,8 @@ pub struct NPC {
pub total_xp: u64,
pub total_skills: BTreeMap<SkillType, f64>,
pub species: SpeciesType,
pub wander_zones: Vec<&'static str>
pub wander_zones: Vec<&'static str>,
pub kill_bonus: Option<KillBonus>,
}
impl Default for NPC {
@ -98,7 +104,8 @@ impl Default for NPC {
aggression: 0,
intrinsic_weapon: None,
species: SpeciesType::Human,
wander_zones: vec!()
wander_zones: vec!(),
kill_bonus: None,
}
}
}

View File

@ -1,4 +1,4 @@
use super::NPC;
use super::{NPC, KillBonus};
use crate::models::item::Pronouns;
use crate::static_content::{
possession_type::PossessionType,
@ -19,6 +19,10 @@ macro_rules! dog {
spawn_location: concat!("room/", $spawn),
intrinsic_weapon: Some(PossessionType::Fangs),
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()
}
}