📄 upgrade.ccl
字号:
;; ___________ _________ _____ __;; \_ _____/______ ____ ____ \_ ___ \____________ _/ ____\/ |_;; | __) \_ __ \_/ __ \_/ __ \/ \ \/\_ __ \__ \\ __\\ __|;; | \ | | \/\ ___/\ ___/\ \____| | \// __ \| | | |;; \___ / |__| \___ >\___ >\______ /|__| (____ /__| |__|;; \/ \/ \/ \/ \/;; ______________________ ______________________;; T H E W A R B E G I N S;; FreeCraft - A free fantasy real time strategy game engine;;;; upgrade.ccl - Define the human dependencies and upgrades.;;;; (c) Copyright 2001-2003 by Lutz Sammer;;;; FreeCraft is free software; you can redistribute it and/or modify;; it under the terms of the GNU General Public License as published;; by the Free Software Foundation; only version 2 of the License.;;;; FreeCraft is distributed in the hope that it will be useful,;; but WITHOUT ANY WARRANTY; without even the implied warranty of;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the;; GNU General Public License for more details.;;;; $Id: upgrade.ccl,v 1.10 2003/03/09 18:35:18 jsalmon3 Exp $;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;=============================================================================;; Define the upgrades;;;; (define-upgrade upgrade-name 'icon icon 'costs #( costs ));;;; upgrade-name is the identifier of the upgrade;; icon is the icon shown for upgrading.;; costs are the costs of the upgrade;; (time gold wood oil ore stone coal);;;; NOTE: Save can generate this table.(define-upgrade 'upgrade-sword1 'icon 'icon-sword2 'costs #( 200 800 0 0 0 0 0))(define-upgrade 'upgrade-sword2 'icon 'icon-sword3 'costs #( 250 2400 0 0 0 0 0))(define-upgrade 'upgrade-arrow1 'icon 'icon-arrow2 'costs #( 200 300 300 0 0 0 0))(define-upgrade 'upgrade-arrow2 'icon 'icon-arrow3 'costs #( 250 900 500 0 0 0 0))(define-upgrade 'upgrade-human-shield1 'icon 'icon-human-shield2 'costs #( 200 300 300 0 0 0 0))(define-upgrade 'upgrade-human-shield2 'icon 'icon-human-shield3 'costs #( 250 900 500 0 0 0 0))(define-upgrade 'upgrade-human-ship-cannon1 'icon 'icon-human-ship-cannon2 'costs #( 200 700 100 1000 0 0 0))(define-upgrade 'upgrade-human-ship-cannon2 'icon 'icon-human-ship-cannon3 'costs #( 250 2000 250 3000 0 0 0))(define-upgrade 'upgrade-human-ship-armor1 'icon 'icon-human-ship-armor2 'costs #( 200 500 500 0 0 0 0))(define-upgrade 'upgrade-human-ship-armor2 'icon 'icon-human-ship-armor3 'costs #( 250 1500 900 0 0 0 0))(define-upgrade 'upgrade-catapult1 'icon 'icon-catapult1 'costs #( 250 1500 0 0 0 0 0))(define-upgrade 'upgrade-catapult2 'icon 'icon-catapult2 'costs #( 250 4000 0 0 0 0 0))(define-upgrade 'upgrade-ranger 'icon 'icon-ranger 'costs #( 250 1500 0 0 0 0 0))(define-upgrade 'upgrade-longbow 'icon 'icon-longbow 'costs #( 250 2000 0 0 0 0 0))(define-upgrade 'upgrade-ranger-scouting 'icon 'icon-ranger-scouting 'costs #( 250 1500 0 0 0 0 0))(define-upgrade 'upgrade-ranger-marksmanship 'icon 'icon-ranger-marksmanship 'costs #( 250 2500 0 0 0 0 0))(define-upgrade 'upgrade-paladin 'icon 'icon-paladin 'costs #( 250 1000 0 0 0 0 0))(define-upgrade 'upgrade-holy-vision 'icon 'icon-holy-vision 'costs #( 0 0 0 0 0 0 0))(define-upgrade 'upgrade-healing 'icon 'icon-heal 'costs #( 200 1000 0 0 0 0 0))(if extensions(define-upgrade 'upgrade-area-healing 'icon 'icon-heal 'costs #( 400 2000 0 0 0 0 0)))(define-upgrade 'upgrade-exorcism 'icon 'icon-exorcism 'costs #( 200 2000 0 0 0 0 0))(define-upgrade 'upgrade-flame-shield 'icon 'icon-flame-shield 'costs #( 100 1000 0 0 0 0 0))(define-upgrade 'upgrade-fireball 'icon 'icon-fireball 'costs #( 0 0 0 0 0 0 0))(define-upgrade 'upgrade-slow 'icon 'icon-slow 'costs #( 100 500 0 0 0 0 0))(define-upgrade 'upgrade-invisibility 'icon 'icon-invisibility 'costs #( 200 2500 0 0 0 0 0))(define-upgrade 'upgrade-polymorph 'icon 'icon-critter 'costs #( 200 2000 0 0 0 0 0))(define-upgrade 'upgrade-blizzard 'icon 'icon-blizzard 'costs #( 200 2000 0 0 0 0 0));;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;=============================================================================;; Define the upgrade modifiers;;;; (define-modifier upgrade-name '(modifiers) ... );;;, This does the real upgrades.;;;; upgrade-name is the identifier of the upgrade modifier;; modifiers is a pair of the effect name and value.;;;; NOTE: Save can generate this table.(define-modifier 'upgrade-sword1 '(piercing-damage 2) '(apply-to unit-footman) '(apply-to unit-knight) '(apply-to unit-paladin) '(apply-to unit-dwarves) '(apply-to unit-danath) '(apply-to unit-lothar) '(apply-to unit-uther-lightbringer) '(apply-to unit-turalyon))(define-modifier 'upgrade-sword2 '(piercing-damage 2) '(apply-to unit-footman) '(apply-to unit-knight) '(apply-to unit-paladin) '(apply-to unit-dwarves) '(apply-to unit-danath) '(apply-to unit-lothar) '(apply-to unit-uther-lightbringer) '(apply-to unit-turalyon))(define-modifier 'upgrade-arrow1 '(piercing-damage 1) '(apply-to unit-archer) '(apply-to unit-ranger) '(apply-to unit-alleria))(define-modifier 'upgrade-arrow2 '(piercing-damage 1) '(apply-to unit-archer) '(apply-to unit-ranger) '(apply-to unit-alleria))(define-modifier 'upgrade-human-shield1 '(armor 2) '(apply-to unit-footman) '(apply-to unit-knight) '(apply-to unit-paladin) '(apply-to unit-dwarves) '(apply-to unit-danath) '(apply-to unit-lothar) '(apply-to unit-uther-lightbringer) '(apply-to unit-turalyon))(define-modifier 'upgrade-human-shield2 '(armor 2) '(apply-to unit-footman) '(apply-to unit-knight) '(apply-to unit-paladin) '(apply-to unit-dwarves) '(apply-to unit-danath) '(apply-to unit-lothar) '(apply-to unit-uther-lightbringer) '(apply-to unit-turalyon))(define-modifier 'upgrade-human-ship-cannon1 '(piercing-damage 5) '(apply-to unit-elven-destroyer) '(apply-to unit-battleship) '(apply-to unit-gnomish-submarine))(define-modifier 'upgrade-human-ship-cannon2 '(piercing-damage 5) '(apply-to unit-elven-destroyer) '(apply-to unit-battleship) '(apply-to unit-gnomish-submarine))(define-modifier 'upgrade-human-ship-armor1 '(armor 5) '(apply-to unit-elven-destroyer) '(apply-to unit-battleship) '(apply-to unit-human-transport))(define-modifier 'upgrade-human-ship-armor2 '(armor 5) '(apply-to unit-elven-destroyer) '(apply-to unit-battleship) '(apply-to unit-human-transport))(define-modifier 'upgrade-catapult1 '(piercing-damage 15) '(apply-to unit-catapult))(define-modifier 'upgrade-catapult2 '(piercing-damage 15) '(apply-to unit-catapult))(define-modifier 'upgrade-ranger '(apply-to unit-archer) '(convert-to unit-ranger))(define-modifier 'upgrade-longbow '(sight-range 1) '(attack-range 1) '(apply-to unit-archer) '(apply-to unit-ranger))(define-modifier 'upgrade-ranger-scouting '(sight-range 3) '(apply-to unit-archer) '(apply-to unit-ranger))(define-modifier 'upgrade-ranger-marksmanship '(piercing-damage 3) '(apply-to unit-archer) '(apply-to unit-ranger))(define-modifier 'upgrade-paladin '(apply-to unit-knight) '(convert-to unit-paladin))(define-modifier 'upgrade-holy-vision '(apply-to unit-paladin))(define-modifier 'upgrade-healing '(apply-to unit-paladin))(if extensions(define-modifier 'upgrade-area-healing '(apply-to unit-paladin)))(define-modifier 'upgrade-exorcism '(apply-to unit-paladin))(define-modifier 'upgrade-flame-shield '(apply-to unit-mage) '(apply-to unit-khadgar))(define-modifier 'upgrade-fireball '(apply-to unit-mage) '(apply-to unit-khadgar))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -