This website requires JavaScript.
Explore
Help
Sign in
dallasgroot
/
0ad
Watch
1
Star
0
Fork
You've already forked 0ad
0
mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced
2026-06-19 14:53:56 -07:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
3
9c8069631e
0ad
/
binaries
/
data
/
mods
/
official
/
scripts
/
tech_functions.js
4 lines
92 B
JavaScript
Raw
Normal View
History
Unescape
Escape
# Added 4 sample techs. Also modified the entity script to allow for gathering fractional resources, and modified the GUI to round resources to the nearest integer. This is necessary since techs will likely push resource gathering amounts to fractional numbers. This was SVN commit r4161.
2006-07-21 15:54:01 -07:00
function
techExample
(
player
)
Basket texture; tech script. (I must have forgotten to re-add these when restoring the lost SVN revisions.) This was SVN commit r4058.
2006-07-03 13:07:11 -07:00
{
# Added 4 sample techs. Also modified the entity script to allow for gathering fractional resources, and modified the GUI to round resources to the nearest integer. This is necessary since techs will likely push resource gathering amounts to fractional numbers. This was SVN commit r4161.
2006-07-21 15:54:01 -07:00
console
.
write
(
"Player "
+
player
+
" got the tech!"
)
;
Basket texture; tech script. (I must have forgotten to re-add these when restoring the lost SVN revisions.) This was SVN commit r4058.
2006-07-03 13:07:11 -07:00
}
Reference in a new issue
Copy permalink