From e32ca1fb7e5a3d685acc211a2077d6bea00556a7 Mon Sep 17 00:00:00 2001 From: Allanis Date: Sat, 30 Mar 2013 21:49:28 +0000 Subject: [PATCH] [Remove] Killing the yaml stuff. --- dat/missions/.yaml | 17 ----------------- dat/missions/cargo.lua | 37 ------------------------------------- 2 files changed, 54 deletions(-) delete mode 100644 dat/missions/.yaml delete mode 100644 dat/missions/cargo.lua diff --git a/dat/missions/.yaml b/dat/missions/.yaml deleted file mode 100644 index ba60c47..0000000 --- a/dat/missions/.yaml +++ /dev/null @@ -1,17 +0,0 @@ -- Name : Welcome - Lua : welcome - Avail : - Location : None -- Name : Cargo Freight - Lua : cargo - Avail : - Location : Computer - Alliance : Neutral - Alliance : Empire United -- Name : Empire Recruitment - Lua : empire - Avail : - Location : Bar - Faction : Empire - - diff --git a/dat/missions/cargo.lua b/dat/missions/cargo.lua deleted file mode 100644 index ea9ba8a..0000000 --- a/dat/missions/cargo.lua +++ /dev/null @@ -1,37 +0,0 @@ --- Create the mission. -function create() - -- Target destination. - planet = space.getPlanet(misn.factions()) - - -- Missions generic. - misn_type = "Rush" - misn_setTitle("Rush Delivery to " .. planet) - - -- More mission specifics. - carg_mass = rnd.int(10, 30) - carg.type = rnd.setDesc(string.format( - "%s needs a rush delivery of %d tons of %s by %s.", - planet, carg_mass, carg_type, "SOMEDAY")) - misn_reward = carg_mass * 1000 + rnd.int(0, 5000) - misn.setReward(string.format("%d Scred" misn_reward)) - - -- Set the hooks. - hook.land("land") -end - -function accept() - player.addCargo(carg_type, carg_mass) - toolkit.msg("Mission Accepted", - string.format("The workers load the %d tons of %s onto your ship." - carg_mass, carg_type)) -end - -function land() - if planet.name() == planet then - player.rmCargo(carg_type, carg_mass) - player.pay(misn_reward) - toolkit.msg("Mission Accomplished", - string.format("The workers unload the %s at the docks.", carg_type)) - end -end -